summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/WLClasses.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index b92d0071..6aef68d1 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -12,6 +12,7 @@ struct SLayerSurface {
DYNLISTENER(mapLayerSurface);
DYNLISTENER(unmapLayerSurface);
DYNLISTENER(commitLayerSurface);
+ DYNLISTENER(newPopup);
wlr_box geometry;
zwlr_layer_shell_v1_layer layer;
@@ -43,4 +44,21 @@ struct SKeyboard {
bool operator==(const SKeyboard& rhs) {
return keyboard == rhs.keyboard;
}
+};
+
+struct SLayerPopup {
+ wlr_xdg_popup* popup = nullptr;
+ SLayerSurface* parentSurface = nullptr;
+ wlr_xdg_popup* parentPopup = nullptr;
+
+ DYNLISTENER(mapPopup);
+ DYNLISTENER(destroyPopup);
+ DYNLISTENER(unmapPopup);
+ DYNLISTENER(commitPopup);
+ DYNLISTENER(newPopupFromPopup);
+
+ // For the list lookup
+ bool operator==(const SLayerPopup& rhs) {
+ return popup == rhs.popup;
+ }
}; \ No newline at end of file