about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2012-09-09 19:47:47 +0000
committerokan <okan>2012-09-09 19:47:47 +0000
commit86524e21dd53bad45f4586a7cc856062b67f8033 (patch)
treee9eabb61fe04d55d914b1a1decc955fff12d0991 /mousefunc.c
parent7071261bde1d100629765ca179a6e8ee662569a6 (diff)
downloadcwm-86524e21dd53bad45f4586a7cc856062b67f8033.tar.gz
cwm-86524e21dd53bad45f4586a7cc856062b67f8033.tar.xz
cwm-86524e21dd53bad45f4586a7cc856062b67f8033.zip
extend client_resize so that it can know when to reset max flags and
bwidth; this allows a client to be resized from a max state, which now
gets treated like a non-max'd client.  based on a diff that does part of
this in a different way from Alexander Polakov.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index b0bd40f..c615052 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -110,12 +110,12 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
 			/* don't resize more than 60 times / second */
 			if ((ev.xmotion.time - ltime) > (1000 / 60)) {
 				ltime = ev.xmotion.time;
-				client_resize(cc);
+				client_resize(cc, 1);
 			}
 			break;
 		case ButtonRelease:
 			if (ltime)
-				client_resize(cc);
+				client_resize(cc, 1);
 			XUnmapWindow(X_Dpy, sc->menuwin);
 			XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0);
 			xu_ptr_ungrab();