Parcourir la source

Mode-guard in on_motionnotify

master
Bert il y a 14 ans
Parent
révision
72e8baf13e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      main.c

+ 1
- 1
main.c Voir le fichier

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


Chargement…
Annuler
Enregistrer