aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kbfunc.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/kbfunc.c b/kbfunc.c
index ced4081..a044a4c 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -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");