diff options
author | Bert <ber.t@gmx.com> | 2011-02-20 01:41:44 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-20 01:41:44 +0100 |
commit | 72e8baf13e7b41a843b1a4e5ed282d32d943e917 (patch) | |
tree | 2646a41e474461adccf28e1f4133ba1cb841322a | |
parent | f0f6644fae8673378936a15781ce96e55f66bec4 (diff) |
Mode-guard in on_motionnotify
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |