summaryrefslogtreecommitdiff
path: root/src/protocols/XDGShell.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-08-30 15:18:12 +0200
committerVaxry <vaxry@vaxry.net>2024-08-30 15:53:44 +0200
commit1c9d56998dbf3a9b61e13573e9e91d149fe65969 (patch)
treea9939d223d864582ae0ea8b419221534a10b27c9 /src/protocols/XDGShell.hpp
parent242e06b24212b61e7afbdf5cf4adae8886a28abd (diff)
xdg-dialog: implement new protocol
Diffstat (limited to 'src/protocols/XDGShell.hpp')
-rw-r--r--src/protocols/XDGShell.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/protocols/XDGShell.hpp b/src/protocols/XDGShell.hpp
index 81d10613..9c766c20 100644
--- a/src/protocols/XDGShell.hpp
+++ b/src/protocols/XDGShell.hpp
@@ -18,6 +18,7 @@ class CXDGToplevelResource;
class CXDGPopupResource;
class CSeatGrab;
class CWLSurfaceResource;
+class CXDGDialogV1Resource;
struct SXDGPositionerState {
Vector2D requestedSize;
@@ -134,7 +135,12 @@ class CXDGToplevelResource {
Vector2D maxSize = {1337420, 694200};
} pending, current;
- WP<CXDGToplevelResource> parent;
+ WP<CXDGToplevelResource> parent;
+ WP<CXDGDialogV1Resource> dialog;
+
+ bool anyChildModal();
+
+ std::vector<WP<CXDGToplevelResource>> children;
private:
SP<CXdgToplevel> resource;