QNX post an expose event when the window is hidden
When the window is hidden, an expose event has to be be posted. This is e.g. needed by the qquickwindow. A exposeEvent calles the exposureChanged function of the window manager there. Change-Id: I9d891e07f81192dcd6674743620319c44da19c48 Reviewed-by: Wolfgang Bremer <wbremer@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>bb10
parent
faefc09e93
commit
0c8487156e
|
|
@ -272,9 +272,9 @@ void QQnxWindow::setVisible(bool visible)
|
|||
window()->requestActivate();
|
||||
|
||||
if (window()->isTopLevel()) {
|
||||
if (visible) {
|
||||
QWindowSystemInterface::handleExposeEvent(window(), window()->geometry());
|
||||
} else {
|
||||
QWindowSystemInterface::handleExposeEvent(window(), window()->geometry());
|
||||
|
||||
if (!visible) {
|
||||
// Flush the context, otherwise it won't disappear immediately
|
||||
screen_flush_context(m_screenContext, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue