Remove GDK_DISPLAY() usage
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 15 Oct 2010 15:40:49 +0000 (15:40 +0000)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 29 May 2013 02:37:24 +0000 (22:37 -0400)
src/dockapp.c

index 41279ff..7b977cc 100644 (file)
@@ -78,7 +78,7 @@ dockapp_init(int argc, char *argv[], char *display_arg, char *geometry_arg)
                wm_hints.icon_window = GDK_WINDOW_XWINDOW(iconwin->window);
                wm_hints.window_group = GDK_WINDOW_XWINDOW(dockwin->window);
 
-               XSetWMHints(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(dockwin->window),
-                           &wm_hints);
+               XSetWMHints(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
+                           GDK_WINDOW_XWINDOW(dockwin->window), &wm_hints);
        }
 }