summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-20 01:41:44 +0100
committerBert <ber.t@gmx.com>2011-02-20 01:41:44 +0100
commit72e8baf13e7b41a843b1a4e5ed282d32d943e917 (patch)
tree2646a41e474461adccf28e1f4133ba1cb841322a /main.c
parentf0f6644fae8673378936a15781ce96e55f66bec4 (diff)
downloadnsxiv-72e8baf13e7b41a843b1a4e5ed282d32d943e917.tar.zst
Mode-guard in on_motionnotify
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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) {