From decb2f638d875900c859d968726d5941058095e8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 20 Mar 2022 14:00:46 +0100 Subject: popups handled properly --- src/helpers/WLClasses.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/helpers') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 6aef68d1..8d7dcede 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -3,6 +3,7 @@ #include "../events/Events.hpp" #include "../defines.hpp" #include "../../wlr-layer-shell-unstable-v1-protocol.h" +#include "../Window.hpp" struct SLayerSurface { wlr_layer_surface_v1* layerSurface; @@ -61,4 +62,20 @@ struct SLayerPopup { bool operator==(const SLayerPopup& rhs) { return popup == rhs.popup; } +}; + +struct SXDGPopup { + CWindow* parentWindow = nullptr; + wlr_xdg_popup* parentPopup = nullptr; + wlr_xdg_popup* popup = nullptr; + + DYNLISTENER(newPopupFromPopupXDG); + DYNLISTENER(destroyPopupXDG); + DYNLISTENER(mapPopupXDG); + DYNLISTENER(unmapPopupXDG); + + // For the list lookup + bool operator==(const SXDGPopup& rhs) { + return popup == rhs.popup; + } }; \ No newline at end of file -- cgit v1.2.3