mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
parent
0149549251
commit
5385853f3f
@ -38,6 +38,7 @@
|
|||||||
DEF_ATOM(_NET_WM_WINDOW_TYPE, True) \
|
DEF_ATOM(_NET_WM_WINDOW_TYPE, True) \
|
||||||
DEF_ATOM(_NET_WM_WINDOW_TYPE_NORMAL, True) \
|
DEF_ATOM(_NET_WM_WINDOW_TYPE_NORMAL, True) \
|
||||||
DEF_ATOM(_NET_WM_WINDOW_TYPE_UTILITY, True) \
|
DEF_ATOM(_NET_WM_WINDOW_TYPE_UTILITY, True) \
|
||||||
|
DEF_ATOM(_NET_WM_PID, True) \
|
||||||
DEF_ATOM(WM_DELETE_WINDOW, True) \
|
DEF_ATOM(WM_DELETE_WINDOW, True) \
|
||||||
DEF_ATOM(_MOTIF_WM_HINTS, True) \
|
DEF_ATOM(_MOTIF_WM_HINTS, True) \
|
||||||
\
|
\
|
||||||
|
@ -350,6 +350,21 @@ static bool x11Init(const LG_DSInitParams params)
|
|||||||
// check for Extended Window Manager Hints support
|
// check for Extended Window Manager Hints support
|
||||||
x11CheckEWMHSupport();
|
x11CheckEWMHSupport();
|
||||||
|
|
||||||
|
if (x11atoms._NET_WM_PID)
|
||||||
|
{
|
||||||
|
pid_t pid = getpid();
|
||||||
|
XChangeProperty(
|
||||||
|
x11.display,
|
||||||
|
x11.window,
|
||||||
|
x11atoms._NET_WM_PID,
|
||||||
|
XA_CARDINAL,
|
||||||
|
32,
|
||||||
|
PropModeReplace,
|
||||||
|
(unsigned char *)&pid,
|
||||||
|
1
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (params.borderless)
|
if (params.borderless)
|
||||||
{
|
{
|
||||||
if (x11atoms._MOTIF_WM_HINTS)
|
if (x11atoms._MOTIF_WM_HINTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user