[mutter/wip/wayland-kms: 676/697] ui: restrict gtk to only use the x11 backend



commit b7b64a2217a93b5f70bc322d4e37c56813b9fc85
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Mon Aug 19 13:01:55 2013 +0200

    ui: restrict gtk to only use the x11 backend
    
    We use GTK as a way to get the X11 connection for our internal
    use, so we need it to keep using X.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706303

 src/ui/ui.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/ui.c b/src/ui/ui.c
index fc6fb4d..ed2c66d 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -56,6 +56,8 @@ struct _MetaUI
 void
 meta_ui_init (void)
 {
+  gdk_set_allowed_backends ("x11");
+
   if (!gtk_init_check (NULL, NULL))
     meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]