expo: fix gesture crash

This commit is contained in:
Vaxry 2025-09-11 21:27:43 +01:00
parent 44343bf690
commit 51b8f80183
No known key found for this signature in database
GPG Key ID: 665806380871D640

View File

@ -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) {