Skip to content
Snippets Groups Projects
Commit 015c976e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Allow fullscreen_geometry() before window is created

parent 86d53573
Branches
Tags
No related merge requests found
Pipeline #7638 failed
...@@ -469,9 +469,7 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height) ...@@ -469,9 +469,7 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height)
XineramaScreenInfo *xsi; XineramaScreenInfo *xsi;
#endif #endif
if (win == 0) if (win != 0) {
return false;
#if defined(WITH_XRANDR) || defined(WITH_XINERAMA) #if defined(WITH_XRANDR) || defined(WITH_XINERAMA)
if (x11.XGetGeometry(dpy, win, (void *)&newroot, &wx, &wy, &rw, &rh, (void *)&dummy, (void *)&dummy) == 0) if (x11.XGetGeometry(dpy, win, (void *)&newroot, &wx, &wy, &rw, &rh, (void *)&dummy, (void *)&dummy) == 0)
return false; return false;
...@@ -555,6 +553,8 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height) ...@@ -555,6 +553,8 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height)
} }
} }
#endif #endif
if (root == 0)
return false;
if (x11.XGetGeometry(dpy, root, (void *)&newroot, &wx, &wy, &rw, &rh, (void *)&dummy, (void *)&dummy) == 0) if (x11.XGetGeometry(dpy, root, (void *)&newroot, &wx, &wy, &rw, &rh, (void *)&dummy, (void *)&dummy) == 0)
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment