aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2016-12-06 21:03:58 +0000
committerokan2016-12-06 21:03:58 +0000
commit68609ac71d758abee88cb0c729ce84cb6e4c13f6 (patch)
treeca65415b53413cfb5836551f444575f53f16be5e /mousefunc.c
parent844994d9afb36549a0b78200fd421fbbde009431 (diff)
downloadcwm-68609ac71d758abee88cb0c729ce84cb6e4c13f6.tar.gz
Now that dim.{x,y} are available early, use them before requiring a
MotionNotify event.
Diffstat (limited to '')
-rw-r--r--mousefunc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 9af8e5a..c71996e 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.114 2016/10/18 17:03:30 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.115 2016/12/06 21:03:58 okan Exp $
*/
#include <sys/types.h>
@@ -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);