user32: Test layered window focus

Sebastian Lackner sebastian at fds-team.de
Wed Nov 11 08:29:32 CST 2015


I assume this test is for the same problem why I had to add the event
flushing to the dinput tests.
Depending on the window manager the focus is somehow lost when a X11 event
arrives
(I think it was ConfigureNotify, but not sure anymore).

2015-11-11 15:24 GMT+01:00 Alexandre Julliard <julliard at winehq.org>:

> Piotr Caban <piotr at codeweavers.com> writes:
>
> > +    hwnd = CreateWindowExA( WS_EX_LAYERED, "MainWindowClass", "layered
> window",
> > +                            WS_POPUP | WS_VISIBLE, 100, 100, 200, 200,
> 0, 0, 0, NULL );
> > +    ok( hwnd != 0, "failed to create layered window\n" );
> > +
> > +    ok(GetFocus() == hwnd, "GetFocus() = %p, expected %p\n",
> GetFocus(), hwnd);
> > +    flush_events(TRUE);
> > +    todo_wine ok(GetFocus() == hwnd, "GetFocus() = %p, expected %p\n",
> GetFocus(), hwnd);
>
> What problem are you trying to demonstrate?  It works fine here:
>
> ../../../tools/runtest -q -P wine -T ../../.. -M user32.dll -p
> user32_test.exe.so win && touch win.ok
> win.c:6566: Test succeeded inside todo block: GetFocus() = 0x8200f6,
> expected 0x8200f6
> Makefile:609: recipe for target 'win.ok' failed
>
> --
> Alexandre Julliard
> julliard at winehq.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20151111/a76f4c43/attachment-0001.html>


More information about the wine-devel mailing list