tcuX11: fix to wait for matching ConfigureNotify
authorTapani Pälli <tapani.palli@intel.com>
Wed, 11 Jan 2017 06:37:54 +0000 (08:37 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 12 Jan 2017 05:33:23 +0000 (07:33 +0200)
commit0cfa22d49dc615b597d40421e92343fe7575681a
tree72654b6982eea3608f74275e7fed659b23d62784
parent47d74e847e9f4f77d2dedef7bb36045e8e4c83a1
tcuX11: fix to wait for matching ConfigureNotify

Patch adds a loop to setDimensions that spins until exact
matching ConfigureNotify event is caught. This is done to make
sure X has updated the window size before we get further.

New processEvent method is added so that we can handle possible
WM_DELETE_WINDOW message during the loop as suggested by Pyry.

Test: run dEQP-EGL.functional.resize* on different configurations

Change-Id: Ic32243e9b25ea6cbdb5a7ab6bfccc7a196f1a5b8
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
framework/platform/X11/tcuX11.cpp
framework/platform/X11/tcuX11.hpp