[hackers] [dwm] applied Rudys barwidth patch, thanks Rudy || garbeam

From: <hg_AT_suckless.org>
Date: Fri, 17 Jun 2011 21:22:59 +0200 (CEST)

changeset: 1552:faaef3b7272c
tag: tip
user: garbeam_AT_gmail.com
date: Fri Jun 17 20:22:54 2011 +0100
files: dwm.c
description:
applied Rudys barwidth patch, thanks Rudy

diff -r 335c279dbff6 -r faaef3b7272c dwm.c
--- a/dwm.c Tue Jun 14 22:28:16 2011 +0100
+++ b/dwm.c Fri Jun 17 20:22:54 2011 +0100
@@ -585,11 +585,13 @@
 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));
Received on Fri Jun 17 2011 - 21:22:59 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 17 2011 - 21:24:05 CEST