[client] x11: fallback to a utility window if motif atom is missing

If the window manager does not support the motif hints then fallback to
creating a utility window, do not do both. A utility window is a
sub-optimal fallback as it may prevent the application being shown in
the taskbar or as a running application as has been reported on KDE.
This commit is contained in:
Geoffrey McRae 2021-03-27 21:42:47 +11:00
parent 358515f4a8
commit ae36abb1ca

View File

@ -202,7 +202,9 @@ static bool x11Init(const LG_DSInitParams params)
5 5
); );
} }
else
{
// fallback to making a utility window, not ideal but better then nothing
XChangeProperty( XChangeProperty(
x11.display, x11.display,
x11.window, x11.window,
@ -214,6 +216,7 @@ static bool x11Init(const LG_DSInitParams params)
1 1
); );
} }
}
else else
{ {
XChangeProperty( XChangeProperty(