summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2016-12-06 21:03:58 +0000
committerokan <okan>2016-12-06 21:03:58 +0000
commit2ae4797297a240f80c61324dfc7862f2c00af964 (patch)
tree876fc95cb2b997868e2be6633a08afc8b6c4c8b7
parent74092f78aac0dbb9e86621f620d49341f7387053 (diff)
downloadcwm-2ae4797297a240f80c61324dfc7862f2c00af964.tar.gz
cwm-2ae4797297a240f80c61324dfc7862f2c00af964.tar.xz
cwm-2ae4797297a240f80c61324dfc7862f2c00af964.zip
Now that dim.{x,y} are available early, use them before requiring a
MotionNotify event.
-rw-r--r--mousefunc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 23c5c42..d3f8ac4 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -53,6 +53,8 @@ mousefunc_client_resize(void *ctx, union arg *arg, enum xev xev)
 	    CurrentTime) != GrabSuccess)
 		return;
 
+	menu_windraw(sc, cc->win, "%4d x %-4d", cc->dim.w, cc->dim.h);
+
 	for (;;) {
 		XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
 
@@ -120,6 +122,8 @@ mousefunc_client_move(void *ctx, union arg *arg, enum xev xev)
 	    CurrentTime) != GrabSuccess)
 		return;
 
+	menu_windraw(sc, cc->win, "%4d, %-4d", cc->geom.x, cc->geom.y);
+
 	for (;;) {
 		XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);