summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-13 10:19:05 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-13 10:19:05 +0000
commit02673538bc98daeb2fe31d3667b5f3e0884e4831 (patch)
treedc19a8233bb5a37bfea404b1dadb34b6a774e445 /dwm.c
parentremoved all defines of geoms, implemented setgeoms() instead, added config.an... (diff)
downloaddwm-02673538bc98daeb2fe31d3667b5f3e0884e4831.tar.gz
dwm-02673538bc98daeb2fe31d3667b5f3e0884e4831.zip
added updatebarpos()
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c15
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);
178void unban(Client *c); 178void unban(Client *c);
179void unmanage(Client *c); 179void unmanage(Client *c);
180void unmapnotify(XEvent *e); 180void unmapnotify(XEvent *e);
181void updatebarpos(void);
181void updatesizehints(Client *c); 182void updatesizehints(Client *c);
182void updatetitle(Client *c); 183void updatetitle(Client *c);
183void updatewmhints(Client *c); 184void updatewmhints(Client *c);
@@ -1415,10 +1416,7 @@ setdefaultgeoms(void) {
1415 mow = ww; 1416 mow = ww;
1416 moh = wh; 1417 moh = wh;
1417 1418
1418 if(dc.drawable != 0) 1419 updatebarpos();
1419 XFreePixmap(dpy, dc.drawable);
1420 dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
1421 XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
1422} 1420}
1423 1421
1424void 1422void
@@ -1743,6 +1741,15 @@ unmapnotify(XEvent *e) {
1743} 1741}
1744 1742
1745void 1743void
1744updatebarpos(void) {
1745
1746 if(dc.drawable != 0)
1747 XFreePixmap(dpy, dc.drawable);
1748 dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
1749 XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
1750}
1751
1752void
1746updatesizehints(Client *c) { 1753updatesizehints(Client *c) {
1747 long msize; 1754 long msize;
1748 XSizeHints size; 1755 XSizeHints size;