changeset: 860:9d9fd4575591
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Apr 13 12:22:00 2007 +0200
summary: changing order of c->border restorage
diff -r 9df7cd16d3d4 -r 9d9fd4575591 event.c
--- a/event.c Fri Apr 13 11:41:39 2007 +0200
+++ b/event.c Fri Apr 13 12:22:00 2007 +0200
@@ -174,6 +174,8 @@ configurerequest(XEvent *e) {
if((c = getclient(ev->window))) {
c->ismax = False;
+ if(ev->value_mask & CWBorderWidth)
+ c->border = ev->border_width;
if(c->isfixed || c->isfloating || (lt->arrange == floating)) {
if(ev->value_mask & CWX)
c->x = ev->x;
@@ -190,11 +192,9 @@ configurerequest(XEvent *e) {
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
}
else {
- if(ev->value_mask & CWBorderWidth)
- c->border = ev->border_width;
configure(c);
- c->border = BORDERPX;
- }
+ }
+ c->border = BORDERPX;
}
else {
wc.x = ev->x;
Received on Fri Apr 13 2007 - 12:23:18 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:36 UTC