summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-09-27 01:10:24 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-09-27 01:10:24 +0800
commit0fa17a09ce2e3d1933935eabfc84b0be243cc3cd (patch)
tree067adc8d5d46efefce74cab1e3698298fc4fb13b /gtk/window-decorator
parentc0f8f65881cd3739a0113051ecf480ba497622b1 (diff)
downloadcompiz-with-glib-mainloop-0fa17a09ce2e3d1933935eabfc84b0be243cc3cd.tar.gz
compiz-with-glib-mainloop-0fa17a09ce2e3d1933935eabfc84b0be243cc3cd.tar.bz2
Don't use deprecated gdk_display symbol
Diffstat (limited to 'gtk/window-decorator')
-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
+}