simplify for()

This commit is contained in:
Julien Danjou 2007-09-07 14:58:17 +02:00
parent a9d1f4a37d
commit 324da44c0d
1 changed files with 6 additions and 7 deletions

View File

@ -125,13 +125,12 @@ restack(Display * disp, jdwm_config *jdwmconf)
wc.sibling = sel->win; wc.sibling = sel->win;
} }
for(c = clients; c; c = c->next) for(c = clients; c; c = c->next)
if(IS_TILED(c, jdwmconf->selected_tags, jdwmconf->ntags)) {
{ if(IS_TILED(c, jdwmconf->selected_tags, jdwmconf->ntags) || c == sel)
if(c == sel) continue;
continue; XConfigureWindow(disp, c->win, CWSibling | CWStackMode, &wc);
XConfigureWindow(disp, c->win, CWSibling | CWStackMode, &wc); wc.sibling = c->win;
wc.sibling = c->win; }
}
} }
XSync(disp, False); XSync(disp, False);
while(XCheckMaskEvent(disp, EnterWindowMask, &ev)); while(XCheckMaskEvent(disp, EnterWindowMask, &ev));