Spec says that the wm doesn't have to respect requests to change
_NET_WM_STATE_HIDDEN, so we shouldn't rely on it. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1140 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
f91d09e47a
commit
70af626e05
21
ewmhints.c
21
ewmhints.c
@ -238,27 +238,6 @@ ewmh_change_state(Window wnd, int state)
|
|||||||
Status status;
|
Status status;
|
||||||
XEvent xevent;
|
XEvent xevent;
|
||||||
|
|
||||||
/*
|
|
||||||
* Deal with the hidden atom
|
|
||||||
*/
|
|
||||||
xevent.type = ClientMessage;
|
|
||||||
xevent.xclient.window = wnd;
|
|
||||||
xevent.xclient.message_type = g_net_wm_state_atom;
|
|
||||||
xevent.xclient.format = 32;
|
|
||||||
if (state == SEAMLESSRDP_MINIMIZED)
|
|
||||||
xevent.xclient.data.l[0] = _NET_WM_STATE_ADD;
|
|
||||||
else
|
|
||||||
xevent.xclient.data.l[0] = _NET_WM_STATE_REMOVE;
|
|
||||||
xevent.xclient.data.l[1] = g_net_wm_state_hidden_atom;
|
|
||||||
xevent.xclient.data.l[2] = 0;
|
|
||||||
xevent.xclient.data.l[3] = 0;
|
|
||||||
xevent.xclient.data.l[4] = 0;
|
|
||||||
status = XSendEvent(g_display, DefaultRootWindow(g_display), False,
|
|
||||||
SubstructureNotifyMask | SubstructureRedirectMask, &xevent);
|
|
||||||
if (!status)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Deal with the max atoms
|
* Deal with the max atoms
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user