summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-21 01:15:00 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-21 01:15:00 +0200
commit63b2189ce81f08ca77894f50e3d484902283189a (patch)
tree930d87b3be70d7e798e8f1655ae1a016f9473fc6 /src/helpers
parent025c023e4bbe22fc61a9dc39a33c0c14495230be (diff)
xdgshell: damage old popup coords after a reposition
fixes #3038. I updated the shell ver without properly supporting .reposition
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/WLClasses.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index e43a00ff..b84c9657 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -191,10 +191,14 @@ struct SXDGPopup {
DYNLISTENER(mapPopupXDG);
DYNLISTENER(unmapPopupXDG);
DYNLISTENER(commitPopupXDG);
+ DYNLISTENER(repositionPopupXDG);
double lx;
double ly;
+ Vector2D lastPos = {};
+ bool repositionRequested = false;
+
SSurfaceTreeNode* pSurfaceTree = nullptr;
// For the list lookup
@@ -242,8 +246,9 @@ struct STablet {
std::string name = "";
- bool operator==(const STablet& b) const {
- return wlrDevice == b.wlrDevice;
+ //
+ bool operator==(const STablet& b) const {
+ return wlrDevice == b.wlrDevice;
}
};