From 09ee65e0afc5c0cff62d088546de1fe89aa9d830 Mon Sep 17 00:00:00 2001 From: "P.P.A" Date: Sat, 8 Jul 2023 09:28:54 +0200 Subject: Revert "push" This reverts commit 96c1d909b6b50cc842076769e444a467eab9b0ee. --- dwm.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 94bc42a..beaaf79 100644 --- a/dwm.c +++ b/dwm.c @@ -236,10 +236,7 @@ static void motionnotify(XEvent *e); static void movemouse(const Arg *arg); static Client *nexttiled(Client *c); static void pop(Client *c); -static Client *prevtiled(Client *c); static void propertynotify(XEvent *e); -static void pushdown(const Arg *arg); -static void pushup(const Arg *arg); static void quit(const Arg *arg); static Monitor *recttomon(int x, int y, int w, int h); static void removesystrayicon(Client *i); @@ -1472,16 +1469,6 @@ pop(Client *c) arrange(c->mon); } -Client * -prevtiled(Client *c) { - Client *p, *r; - - for(p = selmon->clients, r = NULL; p && p != c; p = p->next) - if(!p->isfloating && ISVISIBLE(p)) - r = p; - return r; -} - void propertynotify(XEvent *e) { @@ -1530,37 +1517,6 @@ propertynotify(XEvent *e) } } -void -pushdown(const Arg *arg) { - Client *sel = selmon->sel, *c; - - if(!sel || sel->isfloating || sel == nexttiled(selmon->clients)) - return; - if((c = nexttiled(sel->next))) { - detach(sel); - sel->next = c->next; - c->next = sel; - } - focus(sel); - arrange(selmon); -} - -void -pushup(const Arg *arg) { - Client *sel = selmon->sel, *c; - - if(!sel || sel->isfloating) - return; - if((c = prevtiled(sel)) && c != nexttiled(selmon->clients)) { - detach(sel); - sel->next = c; - for(c = selmon->clients; c->next != sel->next; c = c->next); - c->next = sel; - } - focus(sel); - arrange(selmon); -} - void quit(const Arg *arg) { -- cgit v1.2.3