Skip to content

Commit e9bad67

Browse files
committed
hyprland/ipc: fix activeToplevel not resetting after closewindow
1 parent ed036d5 commit e9bad67

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog/next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ set shell id.
2626
- Fixed volume control breaking with pipewire pro audio mode.
2727
- Fixed escape sequence handling in desktop entries.
2828
- Fixed volumes not initializing if a pipewire device was already loaded before its node.
29+
- Fixed hyprland active toplevel not resetting after window closes.
2930

3031
## Packaging Changes
3132

src/wayland/hyprland/ipc/connection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
484484
}
485485

486486
auto* toplevel = *toplevelIter;
487+
if (toplevel == this->bActiveToplevel.value()) this->bActiveToplevel = nullptr;
487488
auto index = toplevelIter - mList.begin();
488489
this->mToplevels.removeAt(index);
489490

0 commit comments

Comments
 (0)