summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c40
1 files changed, 0 insertions, 40 deletions
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);
159static void destroynotify(XEvent *e); 159static void destroynotify(XEvent *e);
160static void detach(Client *c); 160static void detach(Client *c);
161static void detachstack(Client *c); 161static void detachstack(Client *c);
162static Monitor *dirtomon(int dir);
163static void drawbar(Monitor *m); 162static void drawbar(Monitor *m);
164static void drawbars(void); 163static void drawbars(void);
165static void enternotify(XEvent *e); 164static void enternotify(XEvent *e);
166static void expose(XEvent *e); 165static void expose(XEvent *e);
167static void focus(Client *c); 166static void focus(Client *c);
168static void focusin(XEvent *e); 167static void focusin(XEvent *e);
169static void focusmon(const Arg *arg);
170static void focusstack(const Arg *arg); 168static void focusstack(const Arg *arg);
171static Atom getatomprop(Client *c, Atom prop); 169static Atom getatomprop(Client *c, Atom prop);
172static int getrootptr(int *x, int *y); 170static int getrootptr(int *x, int *y);
@@ -206,7 +204,6 @@ static void seturgent(Client *c, int urg);
206static void showhide(Client *c); 204static void showhide(Client *c);
207static void spawn(const Arg *arg); 205static void spawn(const Arg *arg);
208static void tag(const Arg *arg); 206static void tag(const Arg *arg);
209static void tagmon(const Arg *arg);
210static void tile(Monitor *m); 207static void tile(Monitor *m);
211static void togglebar(const Arg *arg); 208static void togglebar(const Arg *arg);
212static void togglefloating(const Arg *arg); 209static void togglefloating(const Arg *arg);
@@ -684,21 +681,6 @@ detachstack(Client *c)
684 } 681 }
685} 682}
686 683
687Monitor *
688dirtomon(int dir)
689{
690 Monitor *m = NULL;
691
692 if (dir > 0) {
693 if (!(m = selmon->next))
694 m = mons;
695 } else if (selmon == mons)
696 for (m = mons; m->next; m = m->next);
697 else
698 for (m = mons; m->next != selmon; m = m->next);
699 return m;
700}
701
702void 684void
703drawbar(Monitor *m) 685drawbar(Monitor *m)
704{ 686{
@@ -826,20 +808,6 @@ focusin(XEvent *e)
826} 808}
827 809
828void 810void
829focusmon(const Arg *arg)
830{
831 Monitor *m;
832
833 if (!mons->next)
834 return;
835 if ((m = dirtomon(arg->i)) == selmon)
836 return;
837 unfocus(selmon->sel, 0);
838 selmon = m;
839 focus(NULL);
840}
841
842void
843focusstack(const Arg *arg) 811focusstack(const Arg *arg)
844{ 812{
845 Client *c = NULL, *i; 813 Client *c = NULL, *i;
@@ -1690,14 +1658,6 @@ tag(const Arg *arg)
1690} 1658}
1691 1659
1692void 1660void
1693tagmon(const Arg *arg)
1694{
1695 if (!selmon->sel || !mons->next)
1696 return;
1697 sendmon(selmon->sel, dirtomon(arg->i));
1698}
1699
1700void
1701tile(Monitor *m) 1661tile(Monitor *m)
1702{ 1662{
1703 unsigned int i, n, h, mw, my, ty; 1663 unsigned int i, n, h, mw, my, ty;