fix unregistering avars on sethidden

This commit is contained in:
vaxerski 2022-11-05 13:37:57 +00:00
parent ff76fbe763
commit 22384869a6
1 changed files with 2 additions and 2 deletions

View File

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