From c6b97eaabc7b846fda46f10402d2bde3897b27c7 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 18 Apr 2024 10:55:14 +0200 Subject: 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. --- src/gui/beingpopup.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3-70-g09d2