Mode-guard in on_motionnotify

This commit is contained in:
Bert 2011-02-20 01:41:44 +01:00
parent f0f6644fae
commit 72e8baf13e

2
main.c
View file

@ -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) {