pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9714ab
)
Fix GdkDisplay assignment in setup()
author
Quentin Rameau
<quinq@fifth.space>
Tue, 5 Jul 2016 11:35:44 +0000
(13:35 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Tue, 5 Jul 2016 11:35:44 +0000
(13:35 +0200)
Init GTK before trying to get the default display.
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
f6b5a47
..
64c5f5f
100644
(file)
--- 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;