[hackers] [surf] Fix GdkDisplay assignment in setup() || Quentin Rameau
commit 5a02d3e500c7b8d22f00a214eb5a4e7244e4c6f5
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jul 5 13:35:44 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jul 5 13:35:44 2016 +0200
Fix GdkDisplay assignment in setup()
Init GTK before trying to get the default display.
diff --git a/surf.c b/surf.c
index f6b5a47..64c5f5f 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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;
Received on Tue Jul 05 2016 - 13:36:49 CEST
This archive was generated by hypermail 2.3.0
: Tue Jul 05 2016 - 13:48:19 CEST