[mutter] idle-monitor-xsync: Retrieve your xdisplay from the backend



commit fd373948d2ff072a054f587a855e7b2b45ceb8d6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Apr 23 13:25:07 2014 -0400

    idle-monitor-xsync: Retrieve your xdisplay from the backend

 src/backends/x11/meta-idle-monitor-xsync.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/x11/meta-idle-monitor-xsync.c b/src/backends/x11/meta-idle-monitor-xsync.c
index c650618..0cf8866 100644
--- a/src/backends/x11/meta-idle-monitor-xsync.c
+++ b/src/backends/x11/meta-idle-monitor-xsync.c
@@ -25,7 +25,7 @@
 #include "meta-idle-monitor-xsync.h"
 #include "meta-idle-monitor-private.h"
 
-#include <clutter/x11/clutter-x11.h>
+#include "meta-backend-x11.h"
 
 #include <meta/util.h>
 #include "display-private.h"
@@ -193,8 +193,9 @@ static void
 meta_idle_monitor_xsync_constructed (GObject *object)
 {
   MetaIdleMonitorXSync *monitor_xsync = META_IDLE_MONITOR_XSYNC (object);
+  MetaBackendX11 *backend = META_BACKEND_X11 (meta_get_backend ());
 
-  monitor_xsync->display = clutter_x11_get_default_display ();;
+  monitor_xsync->display = meta_backend_x11_get_xdisplay (backend);
   init_xsync (monitor_xsync);
 
   G_OBJECT_CLASS (meta_idle_monitor_xsync_parent_class)->constructed (object);


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