mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 12:49:49 +01:00
fix unregistering avars on sethidden
This commit is contained in:
parent
ff76fbe763
commit
22384869a6
1 changed files with 2 additions and 2 deletions
|
@ -275,8 +275,8 @@ void CWindow::onMap() {
|
|||
void CWindow::setHidden(bool hidden) {
|
||||
m_bHidden = hidden;
|
||||
|
||||
if (hidden) {
|
||||
onUnmap();
|
||||
if (hidden && g_pCompositor->m_pLastWindow == this) {
|
||||
g_pCompositor->m_pLastWindow = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue