<div dir="ltr">I assume this test is for the same problem why I had to add the event flushing to the dinput tests.<div>Depending on the window manager the focus is somehow lost when a X11 event arrives</div><div>(I think it was ConfigureNotify, but not sure anymore).</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-11 15:24 GMT+01:00 Alexandre Julliard <span dir="ltr"><<a href="mailto:julliard@winehq.org" target="_blank">julliard@winehq.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Piotr Caban <<a href="mailto:piotr@codeweavers.com">piotr@codeweavers.com</a>> writes:<br>
<br>
> +    hwnd = CreateWindowExA( WS_EX_LAYERED, "MainWindowClass", "layered window",<br>
> +                            WS_POPUP | WS_VISIBLE, 100, 100, 200, 200, 0, 0, 0, NULL );<br>
> +    ok( hwnd != 0, "failed to create layered window\n" );<br>
> +<br>
> +    ok(GetFocus() == hwnd, "GetFocus() = %p, expected %p\n", GetFocus(), hwnd);<br>
> +    flush_events(TRUE);<br>
> +    todo_wine ok(GetFocus() == hwnd, "GetFocus() = %p, expected %p\n", GetFocus(), hwnd);<br>
<br>
What problem are you trying to demonstrate?  It works fine here:<br>
<br>
../../../tools/runtest -q -P wine -T ../../.. -M user32.dll -p <a href="http://user32_test.exe.so" rel="noreferrer" target="_blank">user32_test.exe.so</a> win && touch win.ok<br>
win.c:6566: Test succeeded inside todo block: GetFocus() = 0x8200f6, expected 0x8200f6<br>
Makefile:609: recipe for target 'win.ok' failed<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alexandre Julliard<br>
<a href="mailto:julliard@winehq.org">julliard@winehq.org</a><br>
<br>
<br>
</font></span></blockquote></div><br></div>