summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2010-09-28 21:59:46 +0200
committerScott Moreau <oreaus@gmail.com>2010-09-28 14:04:30 -0600
commit62889bcd2c5fc3b78e9b6eecfe597f1d822266b4 (patch)
treedaec788bb4290857a5c829e8082f72c649999443 /gtk/window-decorator
parent0f9f1cdb8f03cef37643c636cbfc3897e61657f7 (diff)
downloadcompiz-with-glib-mainloop-62889bcd2c5fc3b78e9b6eecfe597f1d822266b4.tar.gz
compiz-with-glib-mainloop-62889bcd2c5fc3b78e9b6eecfe597f1d822266b4.tar.bz2
Do not use deprecated gdk_display macro.
Diffstat (limited to 'gtk/window-decorator')
-rw-r--r--gtk/window-decorator/decorator.c2
-rw-r--r--gtk/window-decorator/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/window-decorator/decorator.c b/gtk/window-decorator/decorator.c
index 19d41f4..96dbd17 100644
--- a/gtk/window-decorator/decorator.c
+++ b/gtk/window-decorator/decorator.c
@@ -469,7 +469,7 @@ int
update_shadow (void)
{
decor_shadow_options_t opt;
- Display *xdisplay = gdk_display;
+ Display *xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
GdkDisplay *display = gdk_display_get_default ();
GdkScreen *screen = gdk_display_get_default_screen (display);
diff --git a/gtk/window-decorator/util.c b/gtk/window-decorator/util.c
index 322c792..7e78703 100644
--- a/gtk/window-decorator/util.c
+++ b/gtk/window-decorator/util.c
@@ -30,7 +30,7 @@ get_window_prop (Window xwindow,
gdk_error_trap_push ();
type = None;
- result = XGetWindowProperty (gdk_display,
+ result = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
xwindow,
atom,
0, G_MAXLONG,