Introduction
Introduction Statistics Contact Development Disclaimer Help
tmade configurerequest more tidy - dwm - [fork] customized build of dwm, the dy…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 64cfebc5e7d005dfff93a2468df860522fad085a
parent 7a095d0ce241698d8b3ea896499031f1d72b622e
Author: Anselm R. Garbe <[email protected]>
Date: Wed, 14 Feb 2007 08:14:41 +0100
made configurerequest more tidy
Diffstat:
M event.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/event.c b/event.c
t@@ -173,12 +173,17 @@ configurerequest(XEvent *e) {
if((c = getclient(ev->window))) {
c->ismax = False;
- c->border = (ev->value_mask & CWBorderWidth) ? ev->border_widt…
+ if(ev->value_mask & CWBorderWidth)
+ c->border = ev->border_width;
if(c->isfixed || c->isfloat || (arrange == dofloat)) {
- c->x = (ev->value_mask & CWX) ? ev->x : c->x;
- c->y = (ev->value_mask & CWY) ? ev->y : c->y;
- c->w = (ev->value_mask & CWWidth) ? ev->width : c->w;
- c->h = (ev->value_mask & CWHeight) ? ev->height : c->h;
+ if(ev->value_mask & CWX)
+ c->x = ev->x;
+ if(ev->value_mask & CWY)
+ c->y = ev->y;
+ if(ev->value_mask & CWWidth)
+ c->w = ev->width;
+ if(ev->value_mask & CWHeight)
+ c->h = ev->height;
if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask …
configure(c);
resize(c, False);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.