From b4d53bf194f9f9214b6c79d397d723ba53663b4b Mon Sep 17 00:00:00 2001 From: "arg@mmvi" Date: Tue, 26 Sep 2006 07:40:19 +0200 Subject: added configure(), but this doesn't really fix those frking broken SDL apps --- event.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index cf89428f..50c59a0c 100644 --- a/event.c +++ b/event.c @@ -1,3 +1,4 @@ +#include /* * (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. @@ -38,6 +39,7 @@ movemouse(Client *c) { XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev); switch (ev.type) { case ButtonRelease: + resize(c, True, TopLeft); XUngrabPointer(dpy, CurrentTime); return; case Expose: @@ -71,6 +73,7 @@ resizemouse(Client *c) { XMaskEvent(dpy, MOUSEMASK | ExposureMask, &ev); switch(ev.type) { case ButtonRelease: + resize(c, True, TopLeft); XUngrabPointer(dpy, CurrentTime); return; case Expose: @@ -151,6 +154,7 @@ configurerequest(XEvent *e) { XEvent synev; XWindowChanges wc; + fputs("configurerequest\n", stderr); if((c = getclient(ev->window))) { c->ismax = False; gravitate(c, True); @@ -172,19 +176,8 @@ configurerequest(XEvent *e) { newmask = ev->value_mask & (~(CWSibling | CWStackMode | CWBorderWidth)); if(newmask) XConfigureWindow(dpy, c->win, newmask, &wc); - else { - synev.type = ConfigureNotify; - synev.xconfigure.display = dpy; - synev.xconfigure.event = c->win; - synev.xconfigure.window = c->win; - synev.xconfigure.x = c->x; - synev.xconfigure.y = c->y; - synev.xconfigure.width = c->w; - synev.xconfigure.height = c->h; - synev.xconfigure.border_width = c->border; - synev.xconfigure.above = None; - XSendEvent(dpy, c->win, True, NoEventMask, &synev); - } + else + configure(c); XSync(dpy, False); if(c->isfloat) resize(c, False, TopLeft); @@ -218,6 +211,7 @@ enternotify(XEvent *e) { Client *c; XCrossingEvent *ev = &e->xcrossing; + fputs("enternotify\n", stderr); if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) return; @@ -305,6 +299,7 @@ propertynotify(XEvent *e) { Window trans; XPropertyEvent *ev = &e->xproperty; + fputs("propertynotify\n", stderr); if(ev->state == PropertyDelete) return; /* ignore */ -- cgit v1.2.3