qDebug() << Q_FUNC_INFO << "window =" << window;
#endif
- m_childWindows.removeAll(window);
- updateHierarchy();
+ const int numWindowsRemoved = m_childWindows.removeAll(window);
+ if (numWindowsRemoved > 0)
+ updateHierarchy();
}
void QQnxScreen::raiseWindow(QQnxWindow *window)
setScreen(static_cast<QQnxScreen *>(window->screen()->handle()));
- // Add the window to the root of the hierarchy
- m_screen->addWindow(this);
-
// Add window to plugin's window mapper
QQnxIntegration::addWindow(m_window, window);
}
if (m_screen == platformScreen)
return;
- if (m_screen && m_screen->findWindow(m_window)) {
+ if (m_screen)
m_screen->removeWindow(this);
- platformScreen->addWindow(this);
- }
-
+ platformScreen->addWindow(this);
m_screen = platformScreen;
// Move window to proper screen/display