From 5a0a2b1488255cda8718dd188b37acf31323a69a Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 23 Feb 2012 23:02:45 +0200 Subject: resizing a fullscreen windows should reset its state --- monsterwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index 3436254..fa18c17 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -535,6 +535,9 @@ void mousemotion(const Arg *arg) { XWarpPointer(dis, None, current->win, 0, 0, 0, 0, wa.width, wa.height); XQueryPointer(dis, root, &w, &w, &x, &y, &z, &z, &v); + if (current->isfullscrn) setfullscreen(current, False); + if (!current->isfloating) current->isfloating = True; + XEvent ev; do { XMaskEvent(dis, BUTTONMASK|PointerMotionMask|SubstructureRedirectMask, &ev); @@ -550,7 +553,6 @@ void mousemotion(const Arg *arg) { else if (arg->i == MOVE) XMoveWindow(dis, current->win, xw, yh); break; } - current->isfloating = True; } while(ev.type != ButtonRelease); XUngrabPointer(dis, CurrentTime); update_current(current); -- cgit v1.3.1