summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-10-29 13:33:08 +0100
committerAlexander Larsson <alexl@redhat.com>2014-10-29 13:35:17 +0100
commit8c7623de84d13437e951d37ded04dbefdea5c88c (patch)
tree1baf3f1cf035d8b820616edb4fc0e7510dd3df4d /gdk/x11/gdkdisplay-x11.c
parentdae447728db32a5a7162d9216f2e2343837cbae4 (diff)
downloadgtk+-8c7623de84d13437e951d37ded04dbefdea5c88c.tar.gz
Cache default gdk visuals in the GDK_VISUALS property on the root window
This means we don't have to try to initialize opengl in every gtk instance that is stated. It will only happen for the first one. https://bugzilla.gnome.org/show_bug.cgi?id=738670
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index be3ec710a6..358ae84df0 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -165,7 +165,8 @@ static const char *const precache_atoms[] = {
"_NET_WM_USER_TIME_WINDOW",
"_NET_VIRTUAL_ROOTS",
"GDK_SELECTION",
- "_NET_WM_STATE_FOCUSED"
+ "_NET_WM_STATE_FOCUSED",
+ "GDK_VISUALS"
};
static char *gdk_sm_client_id;