Check if XRRGetOutputInfo returned a null pointer.

Fixes bug 763023: in certain circumstances, XRRGetOutputInfo will return
a null pointer.  This commit adds a check to detect and handle this
return value.
This commit is contained in:
fiddlerwoaroof 2016-03-03 10:30:00 -05:00 committed by Matthias Clasen
parent 763daf4420
commit f3f998efd7

View File

@ -653,6 +653,9 @@ init_randr15 (GdkScreen *screen)
XRRGetOutputInfo (x11_screen->xdisplay, resources, output);
GdkX11Monitor monitor;
if (output_info == NULL)
continue;
/* Non RandR1.2+ X driver have output name "default" */
randr12_compat |= !g_strcmp0 (output_info->name, "default");