diff options
author | okan | 2011-08-29 09:09:45 +0000 |
---|---|---|
committer | okan | 2011-08-29 09:09:45 +0000 |
commit | a596121f021db06a768055b757b97e493a01318d (patch) | |
tree | fdf77343137bad40fb79ded858cb478f145a3193 /kbfunc.c | |
parent | dfb1433838d9c2cab5b963adfc62da777615897f (diff) | |
download | cwm-a596121f021db06a768055b757b97e493a01318d.tar.gz |
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@
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.57 2011/07/25 15:10:24 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.58 2011/08/29 09:09:45 okan Exp $ */ #include <sys/param.h> @@ -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); - } + 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"); |