]> git.mxchange.org Git - flightgear.git/commitdiff
fgPopup::checkHit(): revert r1.103 (consume mouse hits by default)
authormfranz <mfranz>
Sat, 24 Jan 2009 23:22:58 +0000 (23:22 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 26 Jan 2009 08:48:14 +0000 (09:48 +0100)
Can't reproduce the problem that r1.103 meant to fix, but it
caused another problem: MMB dragging events weren't passed,
so e.g. power lever control in the bo105 stopped working.

src/GUI/dialog.cxx

index 9ea0b445129d1370978d8a54d571651b26d59866..203dce26f7b5cd745e7c8f1a0780631d40b8a8ae 100644 (file)
@@ -192,7 +192,7 @@ puObject *fgPopup::getActiveInputField(puObject *object)
  */
 int fgPopup::checkHit(int button, int updown, int x, int y)
 {
-    int result = 1;
+    int result = 0;
     if (updown != PU_DRAG && !_dragging)
         result = puPopup::checkHit(button, updown, x, y);