summaryrefslogtreecommitdiff
path: root/gtk/window-decorator/forcequit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/window-decorator/forcequit.c')
-rw-r--r--gtk/window-decorator/forcequit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/window-decorator/forcequit.c b/gtk/window-decorator/forcequit.c
index 26c8f33..7a5cde0 100644
--- a/gtk/window-decorator/forcequit.c
+++ b/gtk/window-decorator/forcequit.c
@@ -9,11 +9,11 @@ get_client_machine (Window xwindow)
int format, result;
char *retval;
- atom = XInternAtom (gdk_display, "WM_CLIENT_MACHINE", FALSE);
+ atom = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), "WM_CLIENT_MACHINE", FALSE);
gdk_error_trap_push ();
- result = XGetWindowProperty (gdk_display,
+ result = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
xwindow, atom,
0, G_MAXLONG,
FALSE, XA_STRING, &type, &format, &nitems,
@@ -65,7 +65,7 @@ kill_window (WnckWindow *win)
}
gdk_error_trap_push ();
- XKillClient (gdk_display, wnck_window_get_xid (win));
+ XKillClient (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), wnck_window_get_xid (win));
gdk_display_sync (gdk_display_get_default ());
gdk_error_trap_pop ();
}
@@ -173,4 +173,4 @@ hide_force_quit_dialog (WnckWindow *win)
gtk_widget_destroy (d->force_quit_dialog);
d->force_quit_dialog = NULL;
}
-} \ No newline at end of file
+}