forked from e16/e16
1
0
Fork 0

Tweak _NET_WM_STATE_ABOVE/BELOW client message handling.

SVN revision: 36731
This commit is contained in:
Kim Woelders 2008-10-16 21:47:52 +00:00
parent 40b5438a3d
commit 5ab53a922a
1 changed files with 16 additions and 4 deletions

View File

@ -973,17 +973,29 @@ EWMH_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * ev)
{
action = do_set(EoGetLayer(ewin) >= 6, action);
if (action)
EwinOpSetLayer(ewin, source, 6);
{
if (EoGetLayer(ewin) < 6)
EwinOpSetLayer(ewin, source, 6);
}
else
EwinOpSetLayer(ewin, source, 4);
{
if (EoGetLayer(ewin) >= 6)
EwinOpSetLayer(ewin, source, 4);
}
}
else if (atom == ECORE_X_ATOM_NET_WM_STATE_BELOW)
{
action = do_set(EoGetLayer(ewin) <= 2, action);
if (action)
EwinOpSetLayer(ewin, source, 2);
{
if (EoGetLayer(ewin) > 2)
EwinOpSetLayer(ewin, source, 2);
}
else
EwinOpSetLayer(ewin, source, 4);
{
if (EoGetLayer(ewin) <= 2)
EwinOpSetLayer(ewin, source, 4);
}
}
else if (atom == ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION)
{