remove nexttiled
This commit is contained in:
parent
6dcccd7a5a
commit
0a90a3f618
18
layout.c
18
layout.c
|
@ -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
|
void
|
||||||
restack(Display * disp, jdwm_config *jdwmconf)
|
restack(Display * disp, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
|
@ -262,12 +255,11 @@ uicb_zoom(Display *disp __attribute__ ((unused)),
|
||||||
jdwm_config *jdwmconf,
|
jdwm_config *jdwmconf,
|
||||||
const char *arg __attribute__ ((unused)))
|
const char *arg __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
Client *c;
|
if(!sel)
|
||||||
if(!sel || ((c = sel) == nexttiled(clients, jdwmconf->selected_tags, jdwmconf->ntags) && !(c = nexttiled(c->next, jdwmconf->selected_tags, jdwmconf->ntags))))
|
|
||||||
return;
|
return;
|
||||||
detach(c);
|
detach(sel);
|
||||||
attach(c);
|
attach(sel);
|
||||||
focus(c->display, &dc, c, jdwmconf);
|
focus(sel->display, &dc, sel, jdwmconf);
|
||||||
arrange(c->display, jdwmconf);
|
arrange(sel->display, jdwmconf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
layout.h
1
layout.h
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
void arrange(Display *, jdwm_config *); /* arranges all windows depending on the layout in use */
|
void arrange(Display *, jdwm_config *); /* arranges all windows depending on the layout in use */
|
||||||
void initlayouts(jdwm_config *); /* initialize layout array */
|
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 restack(Display *, jdwm_config *); /* restores z layers of all clients */
|
||||||
void uicb_focusnext(Display *, jdwm_config *, const char *); /* focuses next visible client */
|
void uicb_focusnext(Display *, jdwm_config *, const char *); /* focuses next visible client */
|
||||||
void uicb_focusprev(Display *, jdwm_config *, const char *); /* focuses prev visible client */
|
void uicb_focusprev(Display *, jdwm_config *, const char *); /* focuses prev visible client */
|
||||||
|
|
Loading…
Reference in New Issue