summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-18 10:55:14 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-18 15:07:16 +0000
commitc6b97eaabc7b846fda46f10402d2bde3897b27c7 (patch)
tree81600b65521952ab964478fe356bd9dc5a3fb03d
parent726768cc297a69c66e0c801bb609dc505b89a3db (diff)
downloadmana-c6b97eaabc7b846fda46f10402d2bde3897b27c7.tar.gz
mana-c6b97eaabc7b846fda46f10402d2bde3897b27c7.tar.bz2
mana-c6b97eaabc7b846fda46f10402d2bde3897b27c7.tar.xz
mana-c6b97eaabc7b846fda46f10402d2bde3897b27c7.zip
Fixed being popup getting stuck under the mouse
Normally the popup follows the mouse, but when the mouse is moved down such that it is on top of the popup, the popup would seem to get stuck. When the BeingPopup is a mouse listener, the default behavior of Popup hiding the BeingPopup when the mouse moves over them kicks in. Hiding of the BeingPopup by Popup and Window when they are hovered in general is a workaround which might be necessary because there is currently no way for the Viewport to determine whether the mouse is above the map view or over a piece of UI.
-rw-r--r--src/gui/beingpopup.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index c11937e9..7bf9edac 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -51,6 +51,8 @@ BeingPopup::BeingPopup():
add(mBeingName);
add(mBeingParty);
+
+ addMouseListener(this);
}
BeingPopup::~BeingPopup() = default;