fixed xterm font change (all other related apps should work fine with this fix as well)
This commit is contained in:
parent
3d73084b5e
commit
6a39a496d0
10
event.c
10
event.c
|
@ -156,7 +156,6 @@ configurerequest(XEvent *e)
|
||||||
|
|
||||||
if((c = getclient(ev->window))) {
|
if((c = getclient(ev->window))) {
|
||||||
gravitate(c, True);
|
gravitate(c, True);
|
||||||
if(c->isfloat) {
|
|
||||||
if(ev->value_mask & CWX)
|
if(ev->value_mask & CWX)
|
||||||
c->x = ev->x;
|
c->x = ev->x;
|
||||||
if(ev->value_mask & CWY)
|
if(ev->value_mask & CWY)
|
||||||
|
@ -165,13 +164,9 @@ configurerequest(XEvent *e)
|
||||||
c->w = ev->width;
|
c->w = ev->width;
|
||||||
if(ev->value_mask & CWHeight)
|
if(ev->value_mask & CWHeight)
|
||||||
c->h = ev->height;
|
c->h = ev->height;
|
||||||
}
|
|
||||||
if(ev->value_mask & CWBorderWidth)
|
if(ev->value_mask & CWBorderWidth)
|
||||||
c->border = ev->border_width;
|
c->border = ev->border_width;
|
||||||
gravitate(c, False);
|
gravitate(c, False);
|
||||||
|
|
||||||
resize(c, True, TopLeft);
|
|
||||||
|
|
||||||
wc.x = c->x;
|
wc.x = c->x;
|
||||||
wc.y = c->y;
|
wc.y = c->y;
|
||||||
wc.width = c->w;
|
wc.width = c->w;
|
||||||
|
@ -193,6 +188,9 @@ configurerequest(XEvent *e)
|
||||||
/* Send synthetic ConfigureNotify */
|
/* Send synthetic ConfigureNotify */
|
||||||
XSendEvent(dpy, c->win, True, NoEventMask, &synev);
|
XSendEvent(dpy, c->win, True, NoEventMask, &synev);
|
||||||
}
|
}
|
||||||
|
XSync(dpy, False);
|
||||||
|
arrange(NULL);
|
||||||
|
drawall();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
wc.x = ev->x;
|
wc.x = ev->x;
|
||||||
|
@ -203,9 +201,9 @@ configurerequest(XEvent *e)
|
||||||
wc.sibling = ev->above;
|
wc.sibling = ev->above;
|
||||||
wc.stack_mode = ev->detail;
|
wc.stack_mode = ev->detail;
|
||||||
XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
|
XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
|
||||||
}
|
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
destroynotify(XEvent *e)
|
destroynotify(XEvent *e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user