From d6e6771eb6726046b54d30f604b65ab941d90676 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 18:07:17 +0100 Subject: debloat + important info about Mod's --- dwm.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 35cce9a..9ae39fc 100644 --- a/dwm.c +++ b/dwm.c @@ -159,14 +159,12 @@ static Monitor *createmon(void); static void destroynotify(XEvent *e); static void detach(Client *c); static void detachstack(Client *c); -static Monitor *dirtomon(int dir); static void drawbar(Monitor *m); static void drawbars(void); static void enternotify(XEvent *e); static void expose(XEvent *e); static void focus(Client *c); static void focusin(XEvent *e); -static void focusmon(const Arg *arg); static void focusstack(const Arg *arg); static Atom getatomprop(Client *c, Atom prop); static int getrootptr(int *x, int *y); @@ -206,7 +204,6 @@ static void seturgent(Client *c, int urg); static void showhide(Client *c); static void spawn(const Arg *arg); static void tag(const Arg *arg); -static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); @@ -684,21 +681,6 @@ detachstack(Client *c) } } -Monitor * -dirtomon(int dir) -{ - Monitor *m = NULL; - - if (dir > 0) { - if (!(m = selmon->next)) - m = mons; - } else if (selmon == mons) - for (m = mons; m->next; m = m->next); - else - for (m = mons; m->next != selmon; m = m->next); - return m; -} - void drawbar(Monitor *m) { @@ -825,20 +807,6 @@ focusin(XEvent *e) setfocus(selmon->sel); } -void -focusmon(const Arg *arg) -{ - Monitor *m; - - if (!mons->next) - return; - if ((m = dirtomon(arg->i)) == selmon) - return; - unfocus(selmon->sel, 0); - selmon = m; - focus(NULL); -} - void focusstack(const Arg *arg) { @@ -1689,14 +1657,6 @@ tag(const Arg *arg) } } -void -tagmon(const Arg *arg) -{ - if (!selmon->sel || !mons->next) - return; - sendmon(selmon->sel, dirtomon(arg->i)); -} - void tile(Monitor *m) { -- cgit v1.2.3