Added swipe workspace gestures

This commit is contained in:
vaxerski 2022-07-07 11:52:12 +02:00
parent 1cf2f378d4
commit 4b796d30c1
11 changed files with 216 additions and 4 deletions

View file

@ -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;
};

View file

@ -28,6 +28,7 @@ public:
// for animations
CAnimatedVariable m_vRenderOffset;
CAnimatedVariable m_fAlpha;
bool m_bForceRendering = true;
// "scratchpad"
bool m_bIsSpecialWorkspace = false;