Skip to content

Commit 51b8f80

Browse files
committed
expo: fix gesture crash
1 parent 44343bf commit 51b8f80

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hyprexpo/ExpoGesture.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
#include "overview.hpp"
44

5+
#include <hyprland/src/Compositor.hpp>
6+
#include <hyprland/src/helpers/Monitor.hpp>
7+
58
void CExpoGesture::begin(const ITrackpadGesture::STrackpadGestureBegin& e) {
69
ITrackpadGesture::begin(e);
710

811
m_lastDelta = 0.F;
12+
13+
if (!g_pOverview)
14+
g_pOverview = std::make_unique<COverview>(g_pCompositor->m_lastMonitor->m_activeWorkspace);
915
}
1016

1117
void CExpoGesture::update(const ITrackpadGesture::STrackpadGestureUpdate& e) {

0 commit comments

Comments
 (0)