summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplaymanager.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-02-07 09:08:48 -0500
committerBenjamin Otte <otte@redhat.com>2012-04-16 18:53:54 +0200
commitea78bcb7c5b7f7e8e9262e54ee2705b5bef76e69 (patch)
treef590b1c65c3d72b3a31b839dcda1af23951ce97d /gdk/gdkdisplaymanager.c
parent234c7fcf28dcd61485e30d70802f6aa1f4bc9fe0 (diff)
downloadgtk+-ea78bcb7c5b7f7e8e9262e54ee2705b5bef76e69.tar.gz
wayland: Prefer X11 backend over Wayland
https://bugzilla.gnome.org/show_bug.cgi?id=674102
Diffstat (limited to 'gdk/gdkdisplaymanager.c')
-rw-r--r--gdk/gdkdisplaymanager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index 4334241b27..0a0ee85744 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -244,16 +244,16 @@ gdk_display_manager_get (void)
manager = g_object_new (gdk_win32_display_manager_get_type (), NULL);
else
#endif
-#ifdef GDK_WINDOWING_WAYLAND
- if (backend == NULL || strcmp (backend, "wayland") == 0)
- manager = g_object_new (gdk_wayland_display_manager_get_type (), NULL);
- else
-#endif
#ifdef GDK_WINDOWING_X11
if (backend == NULL || strcmp (backend, "x11") == 0)
manager = g_object_new (gdk_x11_display_manager_get_type (), NULL);
else
#endif
+#ifdef GDK_WINDOWING_WAYLAND
+ if (backend == NULL || strcmp (backend, "wayland") == 0)
+ manager = g_object_new (gdk_wayland_display_manager_get_type (), NULL);
+ else
+#endif
#ifdef GDK_WINDOWING_BROADWAY
if (backend == NULL || strcmp (backend, "broadway") == 0)
manager = g_object_new (gdk_broadway_display_manager_get_type (), NULL);