remove nexttiled

This commit is contained in:
Julien Danjou 2007-09-06 23:26:48 +02:00
parent 6dcccd7a5a
commit 0a90a3f618
2 changed files with 5 additions and 14 deletions

View File

@ -102,13 +102,6 @@ loadjdwmprops(Display *disp, jdwm_config * jdwmconf)
}
}
inline Client *
nexttiled(Client * c, Bool * tags, int ntags)
{
for(; c && (c->isfloating || !isvisible(c, tags, ntags)); c = c->next);
return c;
}
void
restack(Display * disp, jdwm_config *jdwmconf)
{
@ -262,12 +255,11 @@ uicb_zoom(Display *disp __attribute__ ((unused)),
jdwm_config *jdwmconf,
const char *arg __attribute__ ((unused)))
{
Client *c;
if(!sel || ((c = sel) == nexttiled(clients, jdwmconf->selected_tags, jdwmconf->ntags) && !(c = nexttiled(c->next, jdwmconf->selected_tags, jdwmconf->ntags))))
if(!sel)
return;
detach(c);
attach(c);
focus(c->display, &dc, c, jdwmconf);
arrange(c->display, jdwmconf);
detach(sel);
attach(sel);
focus(sel->display, &dc, sel, jdwmconf);
arrange(sel->display, jdwmconf);
}

View File

@ -10,7 +10,6 @@
void arrange(Display *, jdwm_config *); /* arranges all windows depending on the layout in use */
void initlayouts(jdwm_config *); /* initialize layout array */
Client *nexttiled(Client *, Bool *, int) __attribute__ ((deprecated));
void restack(Display *, jdwm_config *); /* restores z layers of all clients */
void uicb_focusnext(Display *, jdwm_config *, const char *); /* focuses next visible client */
void uicb_focusprev(Display *, jdwm_config *, const char *); /* focuses prev visible client */