equal
deleted
inserted
replaced
216 static void togglebar(const Arg *arg); |
216 static void togglebar(const Arg *arg); |
217 static void togglefloating(const Arg *arg); |
217 static void togglefloating(const Arg *arg); |
218 static void toggletag(const Arg *arg); |
218 static void toggletag(const Arg *arg); |
219 static void toggleview(const Arg *arg); |
219 static void toggleview(const Arg *arg); |
220 static void unfocus(Client *c); |
220 static void unfocus(Client *c); |
221 static void unmanage(Client *c, Bool isdestroyed); |
221 static void unmanage(Client *c, Bool destroyed); |
222 static void unmapnotify(XEvent *e); |
222 static void unmapnotify(XEvent *e); |
223 static void updategeom(void); |
223 static void updategeom(void); |
224 static void updatebarpos(Monitor *m); |
224 static void updatebarpos(Monitor *m); |
225 static void updatebars(void); |
225 static void updatebars(void); |
226 static void updatenumlockmask(void); |
226 static void updatenumlockmask(void); |
1625 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); |
1625 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); |
1626 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
1626 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
1627 } |
1627 } |
1628 |
1628 |
1629 void |
1629 void |
1630 unmanage(Client *c, Bool isdestroyed) { |
1630 unmanage(Client *c, Bool destroyed) { |
1631 XWindowChanges wc; |
1631 XWindowChanges wc; |
1632 |
1632 |
1633 /* The server grab construct avoids race conditions. */ |
1633 /* The server grab construct avoids race conditions. */ |
1634 detach(c); |
1634 detach(c); |
1635 detachstack(c); |
1635 detachstack(c); |
1636 if(!isdestroyed) { |
1636 if(!destroyed) { |
1637 wc.border_width = c->oldbw; |
1637 wc.border_width = c->oldbw; |
1638 XGrabServer(dpy); |
1638 XGrabServer(dpy); |
1639 XSetErrorHandler(xerrordummy); |
1639 XSetErrorHandler(xerrordummy); |
1640 XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */ |
1640 XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */ |
1641 XUngrabButton(dpy, AnyButton, AnyModifier, c->win); |
1641 XUngrabButton(dpy, AnyButton, AnyModifier, c->win); |