projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c06a7
)
applied Rudys barwidth patch, thanks Rudy
author
garbeam@gmail.com
<unknown>
Fri, 17 Jun 2011 19:22:54 +0000
(20:22 +0100)
committer
garbeam@gmail.com
<unknown>
Fri, 17 Jun 2011 19:22:54 +0000
(20:22 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index 7846be0b33b8caeb6c54b0191e92b55c23cffc62..eba48ed2b12d96dbf5c131b518731dec775e23ad 100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-585,11
+585,13
@@
void
configurenotify(XEvent *e) {
Monitor *m;
XConfigureEvent *ev = &e->xconfigure;
+ Bool dirty;
if(ev->window == root) {
+ dirty = (sw != ev->width);
sw = ev->width;
sh = ev->height;
- if(updategeom()) {
+ if(updategeom()
|| dirty
) {
if(dc.drawable != 0)
XFreePixmap(dpy, dc.drawable);
dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));