simplified configurerequest to a bare minimum, removed wrong ban() calls
This commit is contained in:
parent
b61f91361c
commit
39ed54a468
2 changed files with 1 additions and 16 deletions
8
client.c
8
client.c
|
@ -67,14 +67,6 @@ xerrordummy(Display *dsply, XErrorEvent *ee) {
|
||||||
|
|
||||||
/* extern */
|
/* extern */
|
||||||
|
|
||||||
void
|
|
||||||
ban(Client *c) {
|
|
||||||
if(!c || c->isbanned)
|
|
||||||
return;
|
|
||||||
c->isbanned = True;
|
|
||||||
XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
configure(Client *c) {
|
configure(Client *c) {
|
||||||
XConfigureEvent ce;
|
XConfigureEvent ce;
|
||||||
|
|
9
event.c
9
event.c
|
@ -184,16 +184,9 @@ configurerequest(XEvent *e) {
|
||||||
c->h = ev->height;
|
c->h = ev->height;
|
||||||
if((ev->value_mask & (CWX | CWY))
|
if((ev->value_mask & (CWX | CWY))
|
||||||
&& !(ev->value_mask & (CWWidth | CWHeight)))
|
&& !(ev->value_mask & (CWWidth | CWHeight)))
|
||||||
{
|
|
||||||
configure(c);
|
configure(c);
|
||||||
if(isvisible(c))
|
if(isvisible(c))
|
||||||
XMoveWindow(dpy, c->win, c->x, c->y);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
||||||
if(!isvisible(c))
|
|
||||||
ban(c);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
configure(c);
|
configure(c);
|
||||||
|
|
Loading…
Reference in a new issue