From ab4d7cb94bc8b835d3f5e8d423a6438ae68d4e33 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 25 Mar 2021 09:26:50 +1100 Subject: [PATCH] [client] x11: _NET_WM_* hints are ATOMS not CARDINAL This fixes the fullscreen and likely borderless issue too that people have been reporting on X11 under gnome. Thanks to tdb in discord for spotting the error. --- client/displayservers/X11/x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 7a553b1f..d8100afb 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -232,7 +232,7 @@ static bool x11Init(const LG_DSInitParams params) x11.display, x11.window, x11.aNetWMWindowType, - XA_CARDINAL, + XA_ATOM, 32, PropModeReplace, (unsigned char *)&x11.aNetWMWindowTypeNormal, @@ -245,7 +245,7 @@ static bool x11Init(const LG_DSInitParams params) x11.display, x11.window, x11.aNetWMState, - XA_CARDINAL, + XA_ATOM, 32, PropModeReplace, (unsigned char *)&x11.aNetWMStateFullscreen,