Revert "Prevent unnecessary RandR wmaker restart"

This reverts commit 3579c85af1.

As pointed out by David Maciejak himself, this patch triggers
an odd behavior:

 "Now I cannot do a rectangular selection on the desktop with the left
 click of the mouse like I used to do.
 Seems the XRRQueryVersion call to get randr version is messing up with the
 X events. I tried to move up the call in src/startup.c and src/main.c
 instead to the point where the bug cannot be reproduced if I am putting the
 XRRQueryVersion code just before the call to wDefaultsInitDomain
 "WMWindowAttributes" (in src/startup.c) which is really weird."
This commit is contained in:
Carlos R. Mafra
2025-12-30 20:25:46 +00:00
parent 3d993a7323
commit e356ef8c05
2 changed files with 10 additions and 21 deletions
+2 -9
View File
@@ -669,15 +669,8 @@ WScreen *wScreenInit(int screen_number)
#endif /* KEEP_XKB_LOCK_STATUS */
#ifdef USE_RANDR
if (w_global.xext.randr.supported) {
int major, minor;
if (XRRQueryVersion(dpy, &major, &minor)) {
if (major >= 1 && minor >= 2)
XRRSelectInput(dpy, scr->root_win, RRCrtcChangeNotifyMask);
else
XRRSelectInput(dpy, scr->root_win, RRScreenChangeNotifyMask);
}
}
if (w_global.xext.randr.supported)
XRRSelectInput(dpy, scr->root_win, RRScreenChangeNotifyMask);
#endif
XSync(dpy, False);