diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 82b8aa2132..063b597922 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -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");