Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix GdkDisplay assignment in setup() - surf - customized build of surf, the su…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 5a02d3e500c7b8d22f00a214eb5a4e7244e4c6f5
parent f9714ab838e362a74e02916317cf22ef0ebdcdb6
Author: Quentin Rameau <[email protected]>
Date: Tue, 5 Jul 2016 13:35:44 +0200
Fix GdkDisplay assignment in setup()
Init GTK before trying to get the default display.
Diffstat:
M surf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/surf.c b/surf.c
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.