mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:25:58 +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) {
|
void CWindow::setHidden(bool hidden) {
|
||||||
m_bHidden = hidden;
|
m_bHidden = hidden;
|
||||||
|
|
||||||
if (hidden) {
|
if (hidden && g_pCompositor->m_pLastWindow == this) {
|
||||||
onUnmap();
|
g_pCompositor->m_pLastWindow = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue