aboutsummaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-04-13 11:32:38 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-04-13 11:32:38 +0200
commit399993c6b5d594278bf822e2981ebfe8bfcb58c7 (patch)
tree52af1ed868398c257394802ac83d7d622597e5d8 /event.c
parent4d318060a2af949b4a40d05019be891f28eb331b (diff)
downloaddwm-399993c6b5d594278bf822e2981ebfe8bfcb58c7.tar.gz
making Copyright notices more compact
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 6386659..4d9a1e6 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;
remember that computers suck.