tadded updatebarpos() - dwm - [fork] customized build of dwm, the dynamic windo… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 02673538bc98daeb2fe31d3667b5f3e0884e4831 | |
parent 95eae7b9d25602cf5fb25ecbc9d92ead8005c1f8 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Thu, 13 Mar 2008 10:19:05 +0000 | |
added updatebarpos() | |
Diffstat: | |
M config.anselm.h | 5 +---- | |
M dwm.c | 15 +++++++++++---- | |
2 files changed, 12 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/config.anselm.h b/config.anselm.h | |
t@@ -72,10 +72,7 @@ setanselmgeoms(void) { | |
mow = mw; | |
moh = mh; | |
- if(dc.drawable != 0) | |
- XFreePixmap(dpy, dc.drawable); | |
- dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, scree… | |
- XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); | |
+ updatebarpos(); | |
} | |
void | |
diff --git a/dwm.c b/dwm.c | |
t@@ -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); | |
t@@ -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, scree… | |
- XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); | |
+ updatebarpos(); | |
} | |
void | |
t@@ -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, scree… | |
+ XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); | |
+} | |
+ | |
+void | |
updatesizehints(Client *c) { | |
long msize; | |
XSizeHints size; |