summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-07-25 13:55:47 +0300
committerJørgen Lind <jorgen.lind@nokia.com>2012-07-25 13:05:53 +0200
commit70f5d1d20f0568d5a67f7fa9f14be582c17a039d (patch)
treeb481a4206bac153c27aeb77806659e14bd3e75be /examples
parent9b816ca12721176e176b450060db98557c718fed (diff)
Handle events coming from show() properly in qwindow-compositor
By not having the event handler set up properly before calling show() we lose the expose events for platforms that send a sync expose from setVisible (the default QPlatformWindow implementation). On platforms like xcb this was not visible because the expose came later, but with kms the initial expose was lost completely. Change-Id: I16848be35f4d07df8053c66f7d39633a23e45df3 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qwindow-compositor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/qwindow-compositor/main.cpp b/examples/qwindow-compositor/main.cpp
index fef65d4b8..10db0d1b4 100644
--- a/examples/qwindow-compositor/main.cpp
+++ b/examples/qwindow-compositor/main.cpp
@@ -65,9 +65,9 @@ int main(int argc, char *argv[])
screenGeometry.width() / 2, screenGeometry.height() / 2);
QOpenGLWindow window(format, geom);
- window.show();
-
QWindowCompositor compositor(&window);
+ window.show();
+
return app.exec();
}