mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
restore mouse move via the keyboard, noticed by todd@. while the check
for cc was wrong due to the fact that cc->sc is always filled in during the event, we don't even need it - just operate on the focused screen's root window regardless. ok todd@ oga@
This commit is contained in:
parent
be3b8a0748
commit
0dcf7efb8e
5
kbfunc.c
5
kbfunc.c
@ -129,13 +129,8 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg)
|
||||
client_ptrwarp(cc);
|
||||
break;
|
||||
case CWM_PTRMOVE:
|
||||
if (cc) {
|
||||
xu_ptr_getpos(cc->win, &x, &y);
|
||||
xu_ptr_setpos(cc->win, x + mx, y + my);
|
||||
} else {
|
||||
xu_ptr_getpos(sc->rootwin, &x, &y);
|
||||
xu_ptr_setpos(sc->rootwin, x + mx, y + my);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
warnx("invalid flags passed to kbfunc_client_moveresize");
|
||||
|
Loading…
Reference in New Issue
Block a user