[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.
This commit is contained in:
Geoffrey McRae 2021-03-25 09:26:50 +11:00
parent 5bfb33c739
commit ab4d7cb94b

View file

@ -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,