Make DockRegistry actually notify floating window was created

Was missing in last commit. Flutter can now now new windows
were created and create fake overlayed windows for them.
This commit is contained in:
Sergio Martins
2022-09-11 12:12:14 +01:00
parent 9995f70c78
commit 29ac5a2d16

View File

@@ -323,14 +323,16 @@ void DockRegistry::unregisterMainWindow(Controllers::MainWindow *mainWindow)
maybeDelete();
}
void DockRegistry::registerFloatingWindow(Controllers::FloatingWindow *window)
void DockRegistry::registerFloatingWindow(Controllers::FloatingWindow *fw)
{
m_floatingWindows << window;
m_floatingWindows << fw;
Platform::instance()->onFloatingWindowCreated(fw);
}
void DockRegistry::unregisterFloatingWindow(Controllers::FloatingWindow *window)
void DockRegistry::unregisterFloatingWindow(Controllers::FloatingWindow *fw)
{
m_floatingWindows.removeOne(window);
m_floatingWindows.removeOne(fw);
Platform::instance()->onFloatingWindowDestroyed(fw);
maybeDelete();
}