# HG changeset patch # User arg@10ksloc.org # Date 1154708740 -7200 # Node ID 97960220eb77ff9350d3aeaf9e59e522eb33468d # Parent 655e38416bb8d3b74974e82d9473109af587096d fixed xterm font change (all other related apps should work fine with this fix as well) diff -r 655e38416bb8 -r 97960220eb77 event.c --- a/event.c Fri Aug 04 18:17:02 2006 +0200 +++ b/event.c Fri Aug 04 18:25:40 2006 +0200 @@ -156,22 +156,17 @@ if((c = getclient(ev->window))) { gravitate(c, True); - if(c->isfloat) { - 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) + 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 & CWBorderWidth) c->border = ev->border_width; gravitate(c, False); - - resize(c, True, TopLeft); - wc.x = c->x; wc.y = c->y; wc.width = c->w; @@ -193,6 +188,9 @@ /* Send synthetic ConfigureNotify */ XSendEvent(dpy, c->win, True, NoEventMask, &synev); } + XSync(dpy, False); + arrange(NULL); + drawall(); } else { wc.x = ev->x; @@ -203,8 +201,8 @@ wc.sibling = ev->above; wc.stack_mode = ev->detail; XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); + XSync(dpy, False); } - XSync(dpy, False); } static void