diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:00:46 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:00:46 +0100 |
| commit | decb2f638d875900c859d968726d5941058095e8 (patch) | |
| tree | 85128ed396caebc6b9f35eb968b09d267542c9ca /src/helpers | |
| parent | 332fa8a802dd89f16848765cab8a1483e09e73aa (diff) | |
popups handled properly
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
