diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-13 21:09:50 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-13 21:09:50 +0100 |
| commit | 41c7d896e38896916f0762acbc7f811a00240b4f (patch) | |
| tree | ccffcb0e833c38d59f0d68e3fb223b792d83b12a /src/helpers/Workspace.hpp | |
| parent | 33d06fb0e5033412638edec5a8d78cbec844132a (diff) | |
internal: prevent premature destroy in moveworkspace
Diffstat (limited to 'src/helpers/Workspace.hpp')
| -rw-r--r-- | src/helpers/Workspace.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/helpers/Workspace.hpp b/src/helpers/Workspace.hpp index 4e76291b..576ef564 100644 --- a/src/helpers/Workspace.hpp +++ b/src/helpers/Workspace.hpp @@ -3,7 +3,8 @@ #include "../defines.hpp" #include "AnimatedVariable.hpp" -enum eFullscreenMode : uint8_t { +enum eFullscreenMode : uint8_t +{ FULLSCREEN_FULL = 0, FULLSCREEN_MAXIMIZED }; @@ -46,8 +47,11 @@ class CWorkspace { CWindow* m_pLastFocusedWindow = nullptr; // user-set - bool m_bDefaultFloating = false; - bool m_bDefaultPseudo = false; + bool m_bDefaultFloating = false; + bool m_bDefaultPseudo = false; + + // don't destroy in sanity check + bool m_bIndestructible = false; void startAnim(bool in, bool left, bool instant = false); void setActive(bool on); |
