From 48a56381a65e60b515c4c1b2f1784a25295b330c Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 13 May 2025 17:07:51 -0700 Subject: [PATCH] hyprland/focus_grab: prevent grab object leak on activate --- src/wayland/hyprland/focus_grab/qml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/hyprland/focus_grab/qml.cpp b/src/wayland/hyprland/focus_grab/qml.cpp index 9d09fc44..e26a75a5 100644 --- a/src/wayland/hyprland/focus_grab/qml.cpp +++ b/src/wayland/hyprland/focus_grab/qml.cpp @@ -58,7 +58,7 @@ void HyprlandFocusGrab::onProxyConnected() { } void HyprlandFocusGrab::tryActivate() { - if (!this->targetActive || this->isActive()) return; + if (!this->targetActive || this->grab) return; auto* manager = FocusGrabManager::instance(); if (!manager->isActive()) {