Mode-guard in on_motionnotify
This commit is contained in:
parent
f0f6644fae
commit
72e8baf13e
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -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…
Add table
Reference in a new issue