Improved a qt_x11_wait_for_window_manager.
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>
Thu, 17 Sep 2009 11:18:42 +0000 (13:18 +0200)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>
Fri, 18 Sep 2009 12:54:52 +0000 (14:54 +0200)
commita6d34dc0c8715c461fa47da76f5615df60f7b61a
tree3b526c9a4b1777655b6f2b026cb3ac60e6d81b99
parent22b350f9916947ead9c0db6d942ac5ba03ea4ca8
Improved a qt_x11_wait_for_window_manager.

In addition to waiting until the window manager maps and reparents the
window, also wait until we get initial expose event.

The window manager will most probably send us several ConfigureNotify
events, so wait until all of them are handled in addition to the Expose
event (as one might rely on another).

Also, we shouldn't wait for the ReparentNotify event if the window has
X11BypassWindowManagerHint.

Reviewed-by: Olivier Goffart
src/gui/kernel/qwidget_x11.cpp