diff options
| author | Freevatar <freevatar@users.noreply.github.com> | 2026-04-27 08:24:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-27 13:24:38 +0100 |
| commit | 9e357f2481fedfa75899d9721fe1cfc581b3bfc0 (patch) | |
| tree | cc51052cc4380172124c24a41a8b8f2b1af49fe2 /src/protocols/XDGForeignV2.hpp | |
| parent | b5d0519ccdb5f6cdf015f21a91161321b3db63eb (diff) | |
xdg-foreign-v2: Keep invalid imported objects alive (#14166)
* xdg-foreign-v2: validate toplevel surfaces correctly before exporting or parenting
* xdg-foreign-v2: Keep invalid imported objects alive
Diffstat (limited to 'src/protocols/XDGForeignV2.hpp')
| -rw-r--r-- | src/protocols/XDGForeignV2.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocols/XDGForeignV2.hpp b/src/protocols/XDGForeignV2.hpp index 78c8dbf7..092945d4 100644 --- a/src/protocols/XDGForeignV2.hpp +++ b/src/protocols/XDGForeignV2.hpp @@ -42,10 +42,15 @@ class CXDGImportedResourceV2 { CXDGImportedResourceV2(SP<CZxdgImportedV2> resource, SP<CXDGExportedResourceV2> exported, const std::string& handle); ~CXDGImportedResourceV2(); + bool good() const; + void invalidate(); + private: SP<CZxdgImportedV2> m_resource; WP<CXDGExportedResourceV2> m_exported; std::string m_handle; + bool m_invalid = false; + bool m_destroyedSent = false; struct { CHyprSignalListener exportedDestroyed; |
