Added swipe workspace gestures
This commit is contained in:
parent
1cf2f378d4
commit
4b796d30c1
11 changed files with 216 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
@ -28,6 +28,7 @@ public:
|
|||
// for animations
|
||||
CAnimatedVariable m_vRenderOffset;
|
||||
CAnimatedVariable m_fAlpha;
|
||||
bool m_bForceRendering = true;
|
||||
|
||||
// "scratchpad"
|
||||
bool m_bIsSpecialWorkspace = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue