summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index f6b5a47..64c5f5f 100644
--- a/surf.c
+++ b/surf.c
@@ -258,13 +258,14 @@ die(const char *errstr, ...)
void
setup(void)
{
- GdkDisplay *gdpy = gdk_display_get_default();
+ GdkDisplay *gdpy;
int i, j;
/* clean up any zombies immediately */
sigchld(0);
gtk_init(NULL, NULL);
+ gdpy = gdk_display_get_default();
dpy = GDK_DISPLAY_XDISPLAY(gdpy);
curconfig = defconfig;