aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-23 23:02:45 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-23 23:02:45 +0200
commit5a0a2b1488255cda8718dd188b37acf31323a69a (patch)
tree23b73606c9cb72b8568161444d300889fb2fd322 /monsterwm.c
parenta65867d0ce4b0b0009f732019706c119626e9479 (diff)
resizing a fullscreen windows should reset its state
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c4
1 files changed, 3 insertions, 1 deletions
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);