From 72e8baf13e7b41a843b1a4e5ed282d32d943e917 Mon Sep 17 00:00:00 2001 From: Bert Date: Sun, 20 Feb 2011 01:41:44 +0100 Subject: Mode-guard in on_motionnotify --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index b555c4d..476617c 100644 --- a/main.c +++ b/main.c @@ -538,7 +538,7 @@ void on_buttonpress(XButtonEvent *bev) { } void on_motionnotify(XMotionEvent *mev) { - if (!mev) + if (!mev || mode != MODE_NORMAL) return; if (mev->x >= 0 && mev->x <= win.w && mev->y >= 0 && mev->y <= win.h) { -- cgit v1.2.3-54-g00ecf