made configurerequest more tidy

This commit is contained in:
Anselm R. Garbe 2007-02-14 08:14:41 +01:00
parent 7a095d0ce2
commit 64cfebc5e7

15
event.c
View file

@ -173,12 +173,17 @@ configurerequest(XEvent *e) {
if((c = getclient(ev->window))) { if((c = getclient(ev->window))) {
c->ismax = False; c->ismax = False;
c->border = (ev->value_mask & CWBorderWidth) ? ev->border_width : c->border; if(ev->value_mask & CWBorderWidth)
c->border = ev->border_width;
if(c->isfixed || c->isfloat || (arrange == dofloat)) { if(c->isfixed || c->isfloat || (arrange == dofloat)) {
c->x = (ev->value_mask & CWX) ? ev->x : c->x; if(ev->value_mask & CWX)
c->y = (ev->value_mask & CWY) ? ev->y : c->y; c->x = ev->x;
c->w = (ev->value_mask & CWWidth) ? ev->width : c->w; if(ev->value_mask & CWY)
c->h = (ev->value_mask & CWHeight) ? ev->height : c->h; 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 & (CWWidth | CWHeight))) if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight)))
configure(c); configure(c);
resize(c, False); resize(c, False);