Don't unshade iconified windows on activation (revert to old behavior -
requested by Sven Faerber). SVN revision: 28713
This commit is contained in:
parent
0409340ad7
commit
2025d8294e
|
@ -1493,16 +1493,20 @@ EwinMoveToArea(EWin * ewin, int ax, int ay)
|
||||||
void
|
void
|
||||||
EwinOpActivate(EWin * ewin, int source, int raise)
|
EwinOpActivate(EWin * ewin, int source, int raise)
|
||||||
{
|
{
|
||||||
|
int unshade;
|
||||||
|
|
||||||
if (source == OPSRC_APP && EwinInhGetApp(ewin, focus))
|
if (source == OPSRC_APP && EwinInhGetApp(ewin, focus))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
unshade = ewin->state.shaded && !ewin->state.iconified;
|
||||||
|
|
||||||
if (!ewin->state.animated && !ewin->state.iconified)
|
if (!ewin->state.animated && !ewin->state.iconified)
|
||||||
DeskGotoByEwin(ewin);
|
DeskGotoByEwin(ewin);
|
||||||
if (raise)
|
if (raise)
|
||||||
EwinOpRaise(ewin, source);
|
EwinOpRaise(ewin, source);
|
||||||
if (ewin->state.iconified)
|
if (ewin->state.iconified)
|
||||||
EwinOpIconify(ewin, source, 0);
|
EwinOpIconify(ewin, source, 0);
|
||||||
if (ewin->state.shaded)
|
if (unshade)
|
||||||
EwinOpShade(ewin, source, 0);
|
EwinOpShade(ewin, source, 0);
|
||||||
FocusToEWin(ewin, FOCUS_SET);
|
FocusToEWin(ewin, FOCUS_SET);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue