Skip to content

Commit

Permalink
Merge pull request #289 from kristopolous/288-xinerama-crashing-on-no…
Browse files Browse the repository at this point in the history
…n-xinerama-screens

Xinerama crashing bug on non-xinerama screens
  • Loading branch information
raboof authored Jun 7, 2020
2 parents bc4f865 + 877c3c2 commit 517841d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod_xrandr/mod_xrandr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 517841d

Please sign in to comment.