mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
handle layer popups
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user