diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-07 11:52:12 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-07 13:49:04 +0200 |
| commit | 4b796d30c190e14aa39a9540395523cee27bd348 (patch) | |
| tree | 3ad84df935c95aa18bbc47e80f290e1f38a8f365 /src/helpers | |
| parent | 1cf2f378d4a0e5e3da757d90404c2816a6765626 (diff) | |
Added swipe workspace gestures
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 11 | ||||
| -rw-r--r-- | src/helpers/Workspace.hpp | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index b06390b5..b6c38416 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -239,3 +239,14 @@ struct SIdleInhibitor { return pWlrInhibitor == b.pWlrInhibitor; } }; + +struct SSwipeGesture { + CWorkspace* pWorkspaceBegin = nullptr; + + double delta = 0; + + float avgSpeed = 0; + int speedPoints = 0; + + SMonitor* pMonitor = nullptr; +};
\ No newline at end of file diff --git a/src/helpers/Workspace.hpp b/src/helpers/Workspace.hpp index 2d0c5941..dbf0e7c0 100644 --- a/src/helpers/Workspace.hpp +++ b/src/helpers/Workspace.hpp @@ -28,6 +28,7 @@ public: // for animations CAnimatedVariable m_vRenderOffset; CAnimatedVariable m_fAlpha; + bool m_bForceRendering = true; // "scratchpad" bool m_bIsSpecialWorkspace = false; |
