From 63b2189ce81f08ca77894f50e3d484902283189a Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 21 Aug 2023 01:15:00 +0200 Subject: xdgshell: damage old popup coords after a reposition fixes #3038. I updated the shell ver without properly supporting .reposition --- src/helpers/WLClasses.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/helpers') 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; } }; -- cgit v1.2.3