Krolyxon
Commit 72e8baf

Branches

Refs →

nsxiv72e8baf

Mode-guard in on_motionnotify

Author
Bert
Date
2011-02-20 01:41 +0100
Parent
f0f6644
Commit
72e8baf13e7b41a843b1a4e5ed282d32d943e917

+1 −1

1 file changed

  1. M main.c +1 −1
M main.c View
@@ -538,7 +538,7 @@ void on_buttonpress(XButtonEvent *bev) {
538538 }
539539
540540 void on_motionnotify(XMotionEvent *mev) {
541− if (!mev)
541+ if (!mev || mode != MODE_NORMAL)
542542 return;
543543
544544 if (mev->x >= 0 && mev->x <= win.w && mev->y >= 0 && mev->y <= win.h) {