Browse Source

Mode-guard in on_motionnotify

master
Bert 14 years ago
parent
commit
72e8baf13e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.c

+ 1
- 1
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) {


Loading…
Cancel
Save