From 0a90a3f618785bd99145aa20ce94241ea8cfa8f7 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 6 Sep 2007 23:26:48 +0200 Subject: [PATCH] remove nexttiled --- layout.c | 18 +++++------------- layout.h | 1 - 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/layout.c b/layout.c index 96039410..14cd150b 100644 --- a/layout.c +++ b/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 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); } diff --git a/layout.h b/layout.h index 82dd09a1..396e4505 100644 --- a/layout.h +++ b/layout.h @@ -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 */