mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-10-29 11:48:42 +00:00
expo: fix gesture crash
This commit is contained in:
parent
44343bf690
commit
51b8f80183
@ -2,10 +2,16 @@
|
||||
|
||||
#include "overview.hpp"
|
||||
|
||||
#include <hyprland/src/Compositor.hpp>
|
||||
#include <hyprland/src/helpers/Monitor.hpp>
|
||||
|
||||
void CExpoGesture::begin(const ITrackpadGesture::STrackpadGestureBegin& e) {
|
||||
ITrackpadGesture::begin(e);
|
||||
|
||||
m_lastDelta = 0.F;
|
||||
|
||||
if (!g_pOverview)
|
||||
g_pOverview = std::make_unique<COverview>(g_pCompositor->m_lastMonitor->m_activeWorkspace);
|
||||
}
|
||||
|
||||
void CExpoGesture::update(const ITrackpadGesture::STrackpadGestureUpdate& e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user