From 5c00f73d232a9b52834882509d4f3f15426043e7 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 6 Jun 2021 18:36:54 -0400 Subject: [PATCH] [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. --- client/displayservers/X11/atoms.h | 1 + client/displayservers/X11/x11.c | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/displayservers/X11/atoms.h b/client/displayservers/X11/atoms.h index 42e03f7c..1d98a463 100644 --- a/client/displayservers/X11/atoms.h +++ b/client/displayservers/X11/atoms.h @@ -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) \ diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index de0de5f2..b070bcec 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -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,