Handle events coming from show() properly in qwindow-compositor
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 25 Jul 2012 10:55:47 +0000 (13:55 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Wed, 25 Jul 2012 11:05:53 +0000 (13:05 +0200)
commit70f5d1d20f0568d5a67f7fa9f14be582c17a039d
treeb481a4206bac153c27aeb77806659e14bd3e75be
parent9b816ca12721176e176b450060db98557c718fed
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>
examples/qwindow-compositor/main.cpp