Commit c39ea606 authored by Jan Djärv's avatar Jan Djärv

gtkutil.c (xg_display_open): Assign a value to gdpy_def, check

that gdpy is set.
parent be14a425
2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
that gdpy is set.
2009-03-22 Alan Mackenzie <acm@muc.de>
* callint.c (Finteractive): Clarify the doc string - even
......
......@@ -119,9 +119,12 @@ xg_display_open (display_name, dpy)
GdkDisplay *gdpy;
gdpy = gdk_display_open (display_name);
if (!gdpy_def)
gdk_display_manager_set_default_display (gdk_display_manager_get (),
gdpy);
if (!gdpy_def && gdpy)
{
gdpy_def = gdpy;
gdk_display_manager_set_default_display (gdk_display_manager_get (),
gdpy);
}
*dpy = gdpy ? GDK_DISPLAY_XDISPLAY (gdpy) : NULL;
return gdpy != NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment