nsxiv72e8baf
Mode-guard in on_motionnotify
+1 −1
1 file changed
- M main.c +1 −1
| @@ -538,7 +538,7 @@ void on_buttonpress(XButtonEvent *bev) { | |||
| 538 | 538 | } | |
| 539 | 539 | ||
| 540 | 540 | void on_motionnotify(XMotionEvent *mev) { | |
| 541 | − | if (!mev) | |
| 541 | + | if (!mev || mode != MODE_NORMAL) | |
| 542 | 542 | return; | |
| 543 | 543 | ||
| 544 | 544 | if (mev->x >= 0 && mev->x <= win.w && mev->y >= 0 && mev->y <= win.h) { | |