diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 7a011a6e0..f7b4638f1 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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; }