[client] x11: use correct spelling of _NET_WM_BYPASS_COMPOSITOR

The incorrect spelling, NETWM_BYPASS_COMPOSITOR, somehow worked in the
past, but it appears to not work right now. Corrgan on Discord reported
the issue and confirmed that changing the spelling allowed the compositor
to be bypassed and the client to update faster than 60 Hz on his mixed
refresh rate setup.
This commit is contained in:
Quantum 2021-06-06 18:36:54 -04:00 committed by Geoffrey McRae
parent 62c7fc2588
commit 5c00f73d23
2 changed files with 2 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#define DEF_ATOMS() \
DEF_ATOM(_NET_REQUEST_FRAME_EXTENTS, True) \
DEF_ATOM(_NET_FRAME_EXTENTS, True) \
DEF_ATOM(_NET_WM_BYPASS_COMPOSITOR, True) \
DEF_ATOM(_NET_WM_STATE, True) \
DEF_ATOM(_NET_WM_STATE_FULLSCREEN, True) \
DEF_ATOM(_NET_WM_STATE_MAXIMIZED_HORZ, True) \

View File

@ -394,14 +394,11 @@ static bool x11Init(const LG_DSInitParams params)
goto fail_window;
}
Atom NETWM_BYPASS_COMPOSITOR = XInternAtom(x11.display,
"NETWM_BYPASS_COMPOSITOR", False);
unsigned long value = 1;
XChangeProperty(
x11.display,
x11.window,
NETWM_BYPASS_COMPOSITOR,
x11atoms._NET_WM_BYPASS_COMPOSITOR,
XA_CARDINAL,
32,
PropModeReplace,