220 Commits

Author SHA1 Message Date
Stefan Dösinger
ccf430eb52 user32: Silently ignore temporary foreground loss.
The basic problem is this: Thread A has a window W1 that is it's focus
window and the system-global foreground window. At some point thread A
stops processing messages. After that, thread B creates a window W2
and makes it the foreground window. Thread B later on makes W1 (from
Thread A) the foreground window again. After restoring W1 as the
foreground window, Thread A processes window messages again. Two
WM_WINE_SETACTIVEWINDOW messages are in the queue, one for losing the
foreground thread propery and one for restoring it. The first one will
generates a WM_ACTIVATEAPP(0) message, which causes D3D to minimize
the game window.

The included test shows that Windows doesn't deliver any
WM_ACTIVATEAPP messages if the thread stopped being the foreground
thread and re-gained that property between two message processing
calls. It isn't implemented with a plain WM_ACTIVATEAPP filter, the
manually injected message in the test still gets through.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-01 22:53:53 +09:00
Dmitry Timoshkov
12111d8c3b user32/tests: Add some tests for WM_MDIGETACTIVE.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:05:16 +09:00
Dmitry Timoshkov
2e8166ec0e user32/tests: Move MDI tests out of the WM_CREATE handler.
This helps to avoid side effects of the not yet finished window creation
process.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:05:06 +09:00
Jactry Zeng
f22760d210 user32: Implement semi-stub for FlashWindowEx.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Jactry Zeng
d2d114190c user32/tests: Add tests for FlashWindow.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Nikolay Sivov
873e12c87b user32/tests: Fix a test failure on Win8/Win10. 2015-08-24 14:42:13 +09:00
Nikolay Sivov
516b21f4ee user32: Don't send WM_GETTEXT from GetWindowText() with invalid buffer length. 2015-07-28 09:52:16 +02:00
Nikolay Sivov
ee72b0fdc7 user32: Initialize buffer before sending WM_GETTEXT. 2015-07-28 09:52:13 +02:00
Alex Henrie
5c48752784 user32: Fall back to downscaling the big icon for ICON_SMALL2. 2015-05-14 18:57:26 +09:00
Alexandre Julliard
247275aec3 server: Return a valid position also in posted messages. 2015-04-27 18:04:59 +09:00
Thomas Faber
2885e712f7 user32/tests: Avoid side-effect in an assert. 2015-04-03 17:07:38 +09:00
Alexandre Julliard
13700585b1 user32/tests: Print full flag values in traces. 2015-03-30 19:49:14 +09:00
Alexandre Julliard
a5ec8bf8b0 user32/tests: Avoid a race with the get/set window text threads. 2015-02-24 21:55:44 +09:00
Alexandre Julliard
4e87b952b3 user32/tests: Ignore WM_PAINT messages in GetMessagePos test. 2015-02-24 21:55:43 +09:00
Piotr Caban
008a2b46f5 user32/tests: Added GetMessagePos tests. 2015-02-04 21:32:50 +09:00
Sebastian Lackner
d5ba7451a3 user32: Avoid sending window messages in FindWindowExW. 2014-11-18 22:10:38 +09:00
Sebastian Lackner
c56ba461a2 user32/tests: Add multi-threaded tests for [Get|Set]WindowText. 2014-11-18 22:10:36 +09:00
Sebastian Lackner
d6bdae11df user32/tests: Add single-threaded tests for WM_[GET|SET]TEXT and [Get|Set]WindowText. 2014-11-18 22:10:28 +09:00
Sebastian Lackner
0a6e56bdc6 user32/tests: Reenable test function for WM_GETTEXT. 2014-11-18 22:10:24 +09:00
Sebastian Lackner
381adbf1c4 user32/tests: Add tests for internal window messages of FindWindowEx. 2014-11-18 22:09:47 +09:00
Sebastian Lackner
0cf86baf65 user32/tests: Remove unnecessary char array and add additional test in test_FindWindowEx. 2014-11-18 22:09:28 +09:00
Piotr Caban
3f1bbdcae3 server: Send mouse hardware messages to thread owning top-most window.
Also don't limit mouse message scope to top-most window when message
comes from SendInput or window that generated the event is
minimized/transparent.
2014-10-17 17:51:52 +09:00
Piotr Caban
0b273d279b user32/tests: Add cross-process mouse click test. 2014-09-29 18:55:33 +02:00
Piotr Caban
c86bd676c7 user32/tests: Add cross-process WindowFromPoint tests. 2014-09-29 18:55:21 +02:00
Piotr Caban
d137a95fda user32/tests: Add initial WindowFromPoint tests. 2014-09-29 18:55:16 +02:00
Alexandre Julliard
ae6efdd45d user32/tests: Silence some noisy traces. 2014-06-17 10:58:55 +02:00
Alexandre Julliard
a95651a5dc user32/tests: Remove some noisy traces. 2014-06-13 10:13:41 +02:00
Piotr Caban
7257b62bd1 user32: Try to activate topmost activable window in WINPOS_ActivateOtherWindow. 2014-06-11 16:09:01 +02:00
Vincent Povirk
417585661c server: Clear the queue's QS_SMRESULT bit when sending a new message. 2014-05-20 21:26:52 +02:00
Vincent Povirk
abea10fa93 user32/tests: Add test for SendMessage race condition. 2014-05-19 18:55:55 +02:00
Vincent Povirk
eb8406b810 user32/tests: Our popup test window loses capture to itself. 2014-04-25 10:16:15 +02:00
Piotr Caban
27374064b6 user32: Make it possible to activate a window with parent and no WS_CHILD flag in WS_NCLBUTTONDOWN function. 2014-04-02 19:06:09 +02:00
Francois Gouget
ebd9918830 user32/tests: Fix compilation on systems that don't support nameless unions. 2014-03-31 15:28:45 +02:00
Piotr Caban
de21941178 user32: Change SetForegroundWindow behavior on windows with parent and no WS_CHILD flag. 2014-03-27 16:18:05 +01:00
Piotr Caban
1cf3d8caa4 user32: Change SetFocus behavior on windows with parent and no WS_CHILD flag. 2014-03-26 19:20:44 +01:00
Piotr Caban
61a92af5ca user32/tests: Workaround SetForegroundWindow failure due to foreground lock timeout. 2014-03-25 13:55:42 +01:00
Frédéric Delanoy
9b1a2d8f4f user32/tests: Use BOOL type where appropriate. 2014-03-18 12:32:52 +01:00
Piotr Caban
367577c0d6 user32: Check WS_CHILD style in IsChild function. 2014-02-27 09:51:50 -06:00
André Hentschel
c855459a40 user32/tests: Avoid preprocessor check to ensure it compiles. 2014-01-28 11:50:15 +01:00
Frédéric Delanoy
5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
Dmitry Timoshkov
4c5a32e791 user32/tests: Fix window tests compilation with __WINESRC__ defined. 2013-10-24 10:45:14 +02:00
Francois Gouget
bd97f64d04 user32/tests: Add a trailing '\n' to a few ok() calls. 2013-06-14 11:45:19 +02:00
Marcus Meissner
b853ddc40b user32/tests: Remove side effects from assert()s. 2013-06-10 11:56:27 +02:00
Sergey Guralnik
e90418d31c user32: Bring reference MDI child to bottom when switching to next. 2013-06-06 10:42:51 +02:00
Sergey Guralnik
fe2f877678 user32/tests: Test MDI child order changing caused by WM_MDINEXT. 2013-06-05 20:30:58 +02:00
Sergey Guralnik
e3219fa426 user32/tests: Fix a typo. 2013-05-29 19:48:57 +02:00
Sergey Guralnik
108173fd09 user32/tests: SetWindowPos() propagates update region from WS_CLIPCHILDREN child to its children. 2013-04-12 16:28:13 +02:00
Christian Costa
5267f8b7d9 user32: Add tests for MapWindowPoints, ClientToScreen and ScreenToClient.
Based on a patch by Rico Schüller.
2012-11-14 16:29:51 +01:00
Alexandre Julliard
53e4e504b9 user32: Add tests for UpdateLayeredWindowIndirect and fix the behavior of the ULW_EX_NORESIZE flag. 2012-09-27 17:45:43 +02:00
Michael Stefaniuc
4affaea0ba user32: Avoid TRUE:FALSE conditional expressions. 2012-08-13 11:50:51 +02:00