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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user