summaryrefslogtreecommitdiff
path: root/plugins/background/gsd-background-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/background/gsd-background-manager.c')
-rw-r--r--plugins/background/gsd-background-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index 8c42445..c05ec3f 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -84,14 +84,14 @@ caja_is_running (void)
gboolean running;
gint error;
- window_id_atom = XInternAtom (GDK_DISPLAY (),
+ window_id_atom = XInternAtom (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
"CAJA_DESKTOP_WINDOW_ID", True);
if (window_id_atom == None) {
return FALSE;
}
- retval = XGetWindowProperty (GDK_DISPLAY (),
+ retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
GDK_ROOT_WINDOW (),
window_id_atom,
0,
@@ -118,11 +118,11 @@ caja_is_running (void)
return FALSE;
}
- wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS", False);
+ wmclass_atom = XInternAtom (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), "WM_CLASS", False);
gdk_error_trap_push ();
- retval = XGetWindowProperty (GDK_DISPLAY (),
+ retval = XGetWindowProperty (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
caja_xid,
wmclass_atom,
0,