--- dwm.c | 78 +++++++++++++++++++++++++++++++++---------------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/dwm.c b/dwm.c index 4465af1..c0ef39a 100644 --- a/dwm.c +++ b/dwm.c _AT_@ -169,6 +169,7 @@ 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); static long getstate(Window w); static int gettextprop(Window w, Atom atom, char *text, unsigned int size); _AT_@ -1407,31 +1408,6 @@ scan(void) } } -void -sendmon(Client *c, Monitor *m) -{ - if (c->mon == m) - return; - unfocus(c, 1); - detach(c); - detachstack(c); - c->mon = m; - c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ - attach(c); - attachstack(c); - focus(NULL); - arrange(NULL); -} - -void -setclientstate(Client *c, long state) -{ - long data[] = { state, None }; - - XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, - PropModeReplace, (unsigned char *)data, 2); -} - int sendevent(Client *c, Atom proto) { _AT_@ -1457,6 +1433,31 @@ sendevent(Client *c, Atom proto) return exists; } +void +sendmon(Client *c, Monitor *m) +{ + if (c->mon == m) + return; + unfocus(c, 1); + detach(c); + detachstack(c); + c->mon = m; + c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ + attach(c); + attachstack(c); + focus(NULL); + arrange(NULL); +} + +void +setclientstate(Client *c, long state) +{ + long data[] = { state, None }; + + XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, + PropModeReplace, (unsigned char *)data, 2); +} + void setfocus(Client *c) { _AT_@ -1596,7 +1597,6 @@ setup(void) focus(NULL); } - void seturgent(Client *c, int urg) { _AT_@ -1798,6 +1798,19 @@ unmapnotify(XEvent *e) } } +void +updatebarpos(Monitor *m) +{ + m->wy = m->my; + m->wh = m->mh; + if (m->showbar) { + m->wh -= bh; + m->by = m->topbar ? m->wy : m->wy + m->wh; + m->wy = m->topbar ? m->wy + bh : m->wy; + } else + m->by = -bh; +} + void updatebars(void) { _AT_@ -1820,19 +1833,6 @@ updatebars(void) } } -void -updatebarpos(Monitor *m) -{ - m->wy = m->my; - m->wh = m->mh; - if (m->showbar) { - m->wh -= bh; - m->by = m->topbar ? m->wy : m->wy + m->wh; - m->wy = m->topbar ? m->wy + bh : m->wy; - } else - m->by = -bh; -} - void updateclientlist() { -- 2.16.4Received on Sun Jun 17 2018 - 18:08:32 CEST
This archive was generated by hypermail 2.3.0 : Mon Jun 18 2018 - 00:36:26 CEST