diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-12-16 17:17:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 17:17:31 +0000 |
| commit | 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch) | |
| tree | 64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/helpers/Workspace.hpp | |
| parent | 7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff) | |
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/helpers/Workspace.hpp')
| -rw-r--r-- | src/helpers/Workspace.hpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/helpers/Workspace.hpp b/src/helpers/Workspace.hpp index ee70dcff..2fa29d1c 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 }; @@ -11,24 +12,24 @@ enum eFullscreenMode : uint8_t { class CWindow; class CWorkspace { -public: + public: CWorkspace(int monitorID, std::string name, bool special = false); ~CWorkspace(); // Workspaces ID-based have IDs > 0 // and workspaces name-based have IDs starting with -1337 - int m_iID = -1; - std::string m_szName = ""; - uint64_t m_iMonitorID = -1; + int m_iID = -1; + std::string m_szName = ""; + uint64_t m_iMonitorID = -1; // Previous workspace ID is stored during a workspace change, allowing travel // to the previous workspace. - int m_iPrevWorkspaceID = -1; - bool m_bHasFullscreenWindow = false; - eFullscreenMode m_efFullscreenMode = FULLSCREEN_FULL; + int m_iPrevWorkspaceID = -1; + bool m_bHasFullscreenWindow = false; + eFullscreenMode m_efFullscreenMode = FULLSCREEN_FULL; wlr_ext_workspace_handle_v1* m_pWlrHandle = nullptr; - wl_array m_wlrCoordinateArr; + wl_array m_wlrCoordinateArr; // for animations CAnimatedVariable m_vRenderOffset; @@ -36,19 +37,19 @@ public: bool m_bForceRendering = false; // "scratchpad" - bool m_bIsSpecialWorkspace = false; + bool m_bIsSpecialWorkspace = false; // last window - CWindow* m_pLastFocusedWindow = nullptr; + CWindow* m_pLastFocusedWindow = nullptr; // user-set - bool m_bDefaultFloating = false; - bool m_bDefaultPseudo = false; + bool m_bDefaultFloating = false; + bool m_bDefaultPseudo = false; - void startAnim(bool in, bool left, bool instant = false); - void setActive(bool on); + void startAnim(bool in, bool left, bool instant = false); + void setActive(bool on); - void moveToMonitor(const int&); + void moveToMonitor(const int&); - CWindow* getLastFocusedWindow(); + CWindow* getLastFocusedWindow(); }; |
