x11: Fix deadlock
authorChad Versace <chadversary@google.com>
Fri, 20 Jan 2017 22:59:10 +0000 (14:59 -0800)
committerChad Versace <chadversary@google.com>
Fri, 20 Jan 2017 23:24:30 +0000 (15:24 -0800)
commit5e863331b212dea40f9d5222608b9b55f3e4cc7b
treec0e118c6e874f62915871d4beed8a12aaf0709d1
parente98444b9bf969fd4f8bb15b62200caacc1783f8b
x11: Fix deadlock

When waiting for a window's MapNotify event, drain only that window's
event queue.  Do NOT drain the global event queue, which includes all
windows' events.

Fixes deadlock in test 'dEQP-EGL.functional.multithread.window_context'
on Mesa master@f57bdd48 with Intel Skylake.

Change-Id: I8c7f2db6c145f59493cb7572b20c4799e9a2cd0a
Depends-On: Ib3b535cec8295e062994fd759ae083c78641cf13
framework/platform/X11/tcuX11.cpp