Don't handle closing windows while BoxSwitch is inactive
This might be the cause for ghost windows, because they got referrenced without being unreferrenced again. CCBUG: 259640
This commit is contained in:
parent
f58653bdcd
commit
6a94ff5641
1 changed files with 3 additions and 0 deletions
|
@ -487,6 +487,9 @@ void BoxSwitchEffect::setSelectedWindow(EffectWindow* w)
|
|||
|
||||
void BoxSwitchEffect::slotWindowClosed(EffectWindow* w)
|
||||
{
|
||||
if (!mActivated) {
|
||||
return;
|
||||
}
|
||||
if (w == selected_window) {
|
||||
setSelectedWindow(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue