diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-09 22:28:51 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-10 00:06:42 +0200 |
| commit | 1423707dbefc0329e80895451903a77ab684f7ea (patch) | |
| tree | 046e0592451a0470387a0ac649535d7263582e9e /src/protocols | |
| parent | 121c6ac3eae1601a1498e52a9be7030ebfed242c (diff) | |
output: remove wl_output globals for mirrored displays
ref #6387
Diffstat (limited to 'src/protocols')
| -rw-r--r-- | src/protocols/core/Output.cpp | 4 | ||||
| -rw-r--r-- | src/protocols/core/Output.hpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/protocols/core/Output.cpp b/src/protocols/core/Output.cpp index a1b0c7b0..90358fa5 100644 --- a/src/protocols/core/Output.cpp +++ b/src/protocols/core/Output.cpp @@ -105,3 +105,7 @@ void CWLOutputProtocol::remove() { defunct = true; removeGlobal(); } + +bool CWLOutputProtocol::isDefunct() { + return defunct; +} diff --git a/src/protocols/core/Output.hpp b/src/protocols/core/Output.hpp index 5c274612..b17a8272 100644 --- a/src/protocols/core/Output.hpp +++ b/src/protocols/core/Output.hpp @@ -40,6 +40,7 @@ class CWLOutputProtocol : public IWaylandProtocol { // will mark the protocol for removal, will be removed when no. of bound outputs is 0 (or when overwritten by a new global) void remove(); + bool isDefunct(); // true if above was called private: void destroyResource(CWLOutputResource* resource); |
