diff --git a/mod_xrandr/mod_xrandr.c b/mod_xrandr/mod_xrandr.c index 2cf177680..4880c32cb 100644 --- a/mod_xrandr/mod_xrandr.c +++ b/mod_xrandr/mod_xrandr.c @@ -245,6 +245,10 @@ ExtlTab mod_xrandr_get_outputs_for_geom(ExtlTab geom) XRRScreenResources *res = XRRGetScreenResources(ioncore_g.dpy, ioncore_g.rootwins->dummy_win); ExtlTab result = extl_create_table(); + if (!res) { + return result; + } + for(i=0; i < res->noutput; i++){ int x,y; int w,h;