Mode-guard in on_motionnotify

pull/12/head
Bert 14 years ago
parent f0f6644fae
commit 72e8baf13e

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

Loading…
Cancel
Save