dwm-meillo

changeset 195:97960220eb77

fixed xterm font change (all other related apps should work fine with this fix as well)
author arg@10ksloc.org
date Fri, 04 Aug 2006 18:25:40 +0200
parents 655e38416bb8
children d560e796f7fe
files event.c
diffstat 1 files changed, 12 insertions(+), 14 deletions(-) [+]
line diff
     1.1 --- a/event.c	Fri Aug 04 18:17:02 2006 +0200
     1.2 +++ b/event.c	Fri Aug 04 18:25:40 2006 +0200
     1.3 @@ -156,22 +156,17 @@
     1.4  
     1.5  	if((c = getclient(ev->window))) {
     1.6  		gravitate(c, True);
     1.7 -		if(c->isfloat) {
     1.8 -			if(ev->value_mask & CWX)
     1.9 -				c->x = ev->x;
    1.10 -			if(ev->value_mask & CWY)
    1.11 -				c->y = ev->y;
    1.12 -			if(ev->value_mask & CWWidth)
    1.13 -				c->w = ev->width;
    1.14 -			if(ev->value_mask & CWHeight)
    1.15 -				c->h = ev->height;
    1.16 -		}
    1.17 +		if(ev->value_mask & CWX)
    1.18 +			c->x = ev->x;
    1.19 +		if(ev->value_mask & CWY)
    1.20 +			c->y = ev->y;
    1.21 +		if(ev->value_mask & CWWidth)
    1.22 +			c->w = ev->width;
    1.23 +		if(ev->value_mask & CWHeight)
    1.24 +			c->h = ev->height;
    1.25  		if(ev->value_mask & CWBorderWidth)
    1.26  			c->border = ev->border_width;
    1.27  		gravitate(c, False);
    1.28 -
    1.29 -		resize(c, True, TopLeft);
    1.30 -
    1.31  		wc.x = c->x;
    1.32  		wc.y = c->y;
    1.33  		wc.width = c->w;
    1.34 @@ -193,6 +188,9 @@
    1.35  			/* Send synthetic ConfigureNotify */
    1.36  			XSendEvent(dpy, c->win, True, NoEventMask, &synev);
    1.37  		}
    1.38 +		XSync(dpy, False);
    1.39 +		arrange(NULL);
    1.40 +		drawall();
    1.41  	}
    1.42  	else {
    1.43  		wc.x = ev->x;
    1.44 @@ -203,8 +201,8 @@
    1.45  		wc.sibling = ev->above;
    1.46  		wc.stack_mode = ev->detail;
    1.47  		XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
    1.48 +		XSync(dpy, False);
    1.49  	}
    1.50 -	XSync(dpy, False);
    1.51  }
    1.52  
    1.53  static void