Skip to content

Commit 48a5638

Browse files
committed
hyprland/focus_grab: prevent grab object leak on activate
1 parent baa9e5e commit 48a5638

File tree

1 file changed

+1
-1
lines changed
  • src/wayland/hyprland/focus_grab

1 file changed

+1
-1
lines changed

src/wayland/hyprland/focus_grab/qml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void HyprlandFocusGrab::onProxyConnected() {
5858
}
5959

6060
void HyprlandFocusGrab::tryActivate() {
61-
if (!this->targetActive || this->isActive()) return;
61+
if (!this->targetActive || this->grab) return;
6262

6363
auto* manager = FocusGrabManager::instance();
6464
if (!manager->isActive()) {

0 commit comments

Comments
 (0)