Commit 3e624869 authored by fiddlerwoaroof's avatar fiddlerwoaroof Committed by Matthias Clasen

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