diff --git a/hyprexpo/ExpoGesture.cpp b/hyprexpo/ExpoGesture.cpp index aad86a1..8074638 100644 --- a/hyprexpo/ExpoGesture.cpp +++ b/hyprexpo/ExpoGesture.cpp @@ -2,10 +2,16 @@ #include "overview.hpp" +#include +#include + void CExpoGesture::begin(const ITrackpadGesture::STrackpadGestureBegin& e) { ITrackpadGesture::begin(e); m_lastDelta = 0.F; + + if (!g_pOverview) + g_pOverview = std::make_unique(g_pCompositor->m_lastMonitor->m_activeWorkspace); } void CExpoGesture::update(const ITrackpadGesture::STrackpadGestureUpdate& e) {