mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-30 21:51:28 +00:00
[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:
parent
358515f4a8
commit
ae36abb1ca
@ -202,17 +202,20 @@ static bool x11Init(const LG_DSInitParams params)
|
|||||||
5
|
5
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
XChangeProperty(
|
{
|
||||||
x11.display,
|
// fallback to making a utility window, not ideal but better then nothing
|
||||||
x11.window,
|
XChangeProperty(
|
||||||
x11atoms._NET_WM_WINDOW_TYPE,
|
x11.display,
|
||||||
XA_ATOM,
|
x11.window,
|
||||||
32,
|
x11atoms._NET_WM_WINDOW_TYPE,
|
||||||
PropModeReplace,
|
XA_ATOM,
|
||||||
(unsigned char *)&x11atoms._NET_WM_WINDOW_TYPE_UTILITY,
|
32,
|
||||||
1
|
PropModeReplace,
|
||||||
);
|
(unsigned char *)&x11atoms._NET_WM_WINDOW_TYPE_UTILITY,
|
||||||
|
1
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user