mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Now that dim.{x,y} are available early, use them before requiring a
MotionNotify event.
This commit is contained in:
parent
74092f78aa
commit
2ae4797297
@ -53,6 +53,8 @@ mousefunc_client_resize(void *ctx, union arg *arg, enum xev xev)
|
|||||||
CurrentTime) != GrabSuccess)
|
CurrentTime) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
menu_windraw(sc, cc->win, "%4d x %-4d", cc->dim.w, cc->dim.h);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
||||||
|
|
||||||
@ -120,6 +122,8 @@ mousefunc_client_move(void *ctx, union arg *arg, enum xev xev)
|
|||||||
CurrentTime) != GrabSuccess)
|
CurrentTime) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
menu_windraw(sc, cc->win, "%4d, %-4d", cc->geom.x, cc->geom.y);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user