diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-03-13 10:19:05 +0000 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-03-13 10:19:05 +0000 |
commit | 02673538bc98daeb2fe31d3667b5f3e0884e4831 (patch) | |
tree | dc19a8233bb5a37bfea404b1dadb34b6a774e445 /dwm.c | |
parent | 95eae7b9d25602cf5fb25ecbc9d92ead8005c1f8 (diff) | |
download | dwm-02673538bc98daeb2fe31d3667b5f3e0884e4831.tar.gz |
added updatebarpos()
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c index a9edae3..4d26a82 100644 --- a/dwm.c +++ b/dwm.c @@ -178,6 +178,7 @@ void toggleview(const char *arg); void unban(Client *c); void unmanage(Client *c); void unmapnotify(XEvent *e); +void updatebarpos(void); void updatesizehints(Client *c); void updatetitle(Client *c); void updatewmhints(Client *c); @@ -1415,10 +1416,7 @@ setdefaultgeoms(void) { mow = ww; moh = wh; - if(dc.drawable != 0) - XFreePixmap(dpy, dc.drawable); - dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen)); - XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); + updatebarpos(); } void @@ -1743,6 +1741,15 @@ unmapnotify(XEvent *e) { } void +updatebarpos(void) { + + if(dc.drawable != 0) + XFreePixmap(dpy, dc.drawable); + dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen)); + XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); +} + +void updatesizehints(Client *c) { long msize; XSizeHints size; |