]> git.mxchange.org Git - flightgear.git/commitdiff
fix mouse flicker/disappearing problem
authormfranz <mfranz>
Sun, 11 Jan 2009 16:37:51 +0000 (16:37 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 12 Jan 2009 12:04:44 +0000 (13:04 +0100)
src/GUI/dialog.cxx

index 7a011a6e0e9bee9ee776207117f6f1977732741b..f7b4638f146914d62cc5fc53f402ab54e09c9aa3 100644 (file)
@@ -294,9 +294,9 @@ int fgPopup::checkHit(int button, int updown, int x, int y)
             setPosition(x + _dlgX - _startX, y + _dlgY - _startY);
         }
 
-    } else {
-        _dragging = false;
+    } else if (_dragging) {
         fgSetMouseCursor(_start_cursor);
+        _dragging = false;
     }
     return result;
 }