hyprland/ipc: fix activeToplevel not resetting after closewindow

This commit is contained in:
outfoxxed 2025-11-24 20:39:43 -08:00
parent ed036d514b
commit e9bad67619
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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);