mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[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:
parent
62c7fc2588
commit
5c00f73d23
@ -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) \
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user