diff options
author | okan | 2012-09-09 19:47:47 +0000 |
---|---|---|
committer | okan | 2012-09-09 19:47:47 +0000 |
commit | 3f39c1ade76f893d54e73fe273041ff90c39d7de (patch) | |
tree | 5979019c722abe491734c43e8bc1a94e91e2fb83 /mousefunc.c | |
parent | 27c19dc76dec9d1f5bc83b63aac5278b5c5e24c2 (diff) | |
download | cwm-3f39c1ade76f893d54e73fe273041ff90c39d7de.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index 4f6ec66..5af8798 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.37 2012/07/13 17:01:04 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.38 2012/09/09 19:47:47 okan Exp $ */ #include <sys/param.h> @@ -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(); |