From e9bad67619ee9937a1bbecfc6ad3b4231d2ecdc3 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 24 Nov 2025 20:39:43 -0800 Subject: [PATCH] hyprland/ipc: fix activeToplevel not resetting after closewindow --- changelog/next.md | 1 + src/wayland/hyprland/ipc/connection.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog/next.md b/changelog/next.md index b03a52b..0d15e5e 100644 --- a/changelog/next.md +++ b/changelog/next.md @@ -26,6 +26,7 @@ set shell id. - Fixed volume control breaking with pipewire pro audio mode. - Fixed escape sequence handling in desktop entries. - Fixed volumes not initializing if a pipewire device was already loaded before its node. +- Fixed hyprland active toplevel not resetting after window closes. ## Packaging Changes diff --git a/src/wayland/hyprland/ipc/connection.cpp b/src/wayland/hyprland/ipc/connection.cpp index 067b922..234c299 100644 --- a/src/wayland/hyprland/ipc/connection.cpp +++ b/src/wayland/hyprland/ipc/connection.cpp @@ -484,6 +484,7 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) { } auto* toplevel = *toplevelIter; + if (toplevel == this->bActiveToplevel.value()) this->bActiveToplevel = nullptr; auto index = toplevelIter - mList.begin(); this->mToplevels.removeAt(index);