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