aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-09-25 23:15:36 +0100
committerVaxry <[email protected]>2024-09-25 23:15:41 +0100
commit49713fab045f7bd41466ddedd83ad5cb81142853 (patch)
treec5b435dd680c4aa881468167ef9e722eea0fed98
parent8b86ee8bf08eaf8b57d0a7f12af876216323cc3d (diff)
downloadHyprland-49713fab045f7bd41466ddedd83ad5cb81142853.tar.gz
Hyprland-49713fab045f7bd41466ddedd83ad5cb81142853.zip
pointermgr: avoid hogging CMonitor refs
-rw-r--r--src/managers/PointerManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp
index 3dcee431..736b629c 100644
--- a/src/managers/PointerManager.cpp
+++ b/src/managers/PointerManager.cpp
@@ -17,10 +17,8 @@ CPointerManager::CPointerManager() {
onMonitorLayoutChange();
- PMONITOR->events.modeChanged.registerStaticListener(
- [this, PMONITOR](void* owner, std::any data) { g_pEventLoopManager->doLater([this, PMONITOR]() { onMonitorLayoutChange(); }); }, nullptr);
- PMONITOR->events.disconnect.registerStaticListener(
- [this, PMONITOR](void* owner, std::any data) { g_pEventLoopManager->doLater([this, PMONITOR]() { onMonitorLayoutChange(); }); }, nullptr);
+ PMONITOR->events.modeChanged.registerStaticListener([this](void* owner, std::any data) { g_pEventLoopManager->doLater([this]() { onMonitorLayoutChange(); }); }, nullptr);
+ PMONITOR->events.disconnect.registerStaticListener([this](void* owner, std::any data) { g_pEventLoopManager->doLater([this]() { onMonitorLayoutChange(); }); }, nullptr);
PMONITOR->events.destroy.registerStaticListener(
[this](void* owner, std::any data) {
if (g_pCompositor && !g_pCompositor->m_bIsShuttingDown)