summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/event.c b/event.c
index 6386659a..4d9a1e63 100644
--- a/event.c
+++ b/event.c
@@ -1,6 +1,5 @@
-/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
- * See LICENSE file for license details.
- */
+/* © 2004-2007 Anselm R. Garbe <garbeam at gmail dot com>
+ * See LICENSE file for license details. */
#include "dwm.h"
#include <stdio.h>
#include <stdlib.h>
@@ -174,8 +173,6 @@ 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;
@@ -191,8 +188,12 @@ configurerequest(XEvent *e) {
if(isvisible(c))
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
}
- else
+ else {
+ if(ev->value_mask & CWBorderWidth)
+ c->border = ev->border_width;
configure(c);
+ c->border = BORDERPX;
+ }
}
else {
wc.x = ev->x;