diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 40 |
1 files changed, 0 insertions, 40 deletions
| @@ -159,14 +159,12 @@ static Monitor *createmon(void); | |||
| 159 | static void destroynotify(XEvent *e); | 159 | static void destroynotify(XEvent *e); |
| 160 | static void detach(Client *c); | 160 | static void detach(Client *c); |
| 161 | static void detachstack(Client *c); | 161 | static void detachstack(Client *c); |
| 162 | static Monitor *dirtomon(int dir); | ||
| 163 | static void drawbar(Monitor *m); | 162 | static void drawbar(Monitor *m); |
| 164 | static void drawbars(void); | 163 | static void drawbars(void); |
| 165 | static void enternotify(XEvent *e); | 164 | static void enternotify(XEvent *e); |
| 166 | static void expose(XEvent *e); | 165 | static void expose(XEvent *e); |
| 167 | static void focus(Client *c); | 166 | static void focus(Client *c); |
| 168 | static void focusin(XEvent *e); | 167 | static void focusin(XEvent *e); |
| 169 | static void focusmon(const Arg *arg); | ||
| 170 | static void focusstack(const Arg *arg); | 168 | static void focusstack(const Arg *arg); |
| 171 | static Atom getatomprop(Client *c, Atom prop); | 169 | static Atom getatomprop(Client *c, Atom prop); |
| 172 | static int getrootptr(int *x, int *y); | 170 | static int getrootptr(int *x, int *y); |
| @@ -206,7 +204,6 @@ static void seturgent(Client *c, int urg); | |||
| 206 | static void showhide(Client *c); | 204 | static void showhide(Client *c); |
| 207 | static void spawn(const Arg *arg); | 205 | static void spawn(const Arg *arg); |
| 208 | static void tag(const Arg *arg); | 206 | static void tag(const Arg *arg); |
| 209 | static void tagmon(const Arg *arg); | ||
| 210 | static void tile(Monitor *m); | 207 | static void tile(Monitor *m); |
| 211 | static void togglebar(const Arg *arg); | 208 | static void togglebar(const Arg *arg); |
| 212 | static void togglefloating(const Arg *arg); | 209 | static void togglefloating(const Arg *arg); |
| @@ -684,21 +681,6 @@ detachstack(Client *c) | |||
| 684 | } | 681 | } |
| 685 | } | 682 | } |
| 686 | 683 | ||
| 687 | Monitor * | ||
| 688 | dirtomon(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 | |||
| 702 | void | 684 | void |
| 703 | drawbar(Monitor *m) | 685 | drawbar(Monitor *m) |
| 704 | { | 686 | { |
| @@ -826,20 +808,6 @@ focusin(XEvent *e) | |||
| 826 | } | 808 | } |
| 827 | 809 | ||
| 828 | void | 810 | void |
| 829 | focusmon(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 | |||
| 842 | void | ||
| 843 | focusstack(const Arg *arg) | 811 | focusstack(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 | ||
| 1692 | void | 1660 | void |
| 1693 | tagmon(const Arg *arg) | ||
| 1694 | { | ||
| 1695 | if (!selmon->sel || !mons->next) | ||
| 1696 | return; | ||
| 1697 | sendmon(selmon->sel, dirtomon(arg->i)); | ||
| 1698 | } | ||
| 1699 | |||
| 1700 | void | ||
| 1701 | tile(Monitor *m) | 1661 | tile(Monitor *m) |
| 1702 | { | 1662 | { |
| 1703 | unsigned int i, n, h, mw, my, ty; | 1663 | unsigned int i, n, h, mw, my, ty; |
