Fix stacking before shade/unshade when "click-raises" is enabled (noted by Sven Faerber).

SVN revision: 28707
This commit is contained in:
Kim Woelders 2007-03-14 01:02:49 +00:00
parent 94fd9c066f
commit 9468905ea1
2 changed files with 7 additions and 0 deletions

View File

@ -1441,6 +1441,9 @@ DeskRestack(Desk * dsk)
int i, num, tot;
EObj *const *lst, *eo;
if (!dsk->stack.dirty)
return;
/* Special case if only one window needs restacking */
if (dsk->stack.dirty == 1)
{

View File

@ -985,6 +985,8 @@ EwinShade(EWin * ewin)
if ((ewin->border) && (!strcmp(ewin->border->name, "BORDERLESS")))
return;
DeskRestack(EoGetDesk(ewin)); /* Do any pending stacking ops now */
speed = Conf.shading.speed;
x = EoGetX(ewin);
@ -1159,6 +1161,8 @@ EwinUnShade(EWin * ewin)
if (!ewin->state.shaded || ewin->state.iconified)
return;
DeskRestack(EoGetDesk(ewin)); /* Do any pending stacking ops now */
speed = Conf.shading.speed;
x = EoGetX(ewin);