summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
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,