Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
763dc064
Commit
763dc064
authored
Sep 06, 2023
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Don't check messages when doing the minimization workaround dance.
parent
49e1d2ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
device.c
dlls/d3d8/tests/device.c
+8
-2
No files found.
dlls/d3d8/tests/device.c
View file @
763dc064
...
...
@@ -3203,9 +3203,15 @@ static void test_wndproc(void)
/* I have to minimize and restore the focus window, otherwise native d3d8 fails
* device::reset with D3DERR_DEVICELOST. This does not happen when the window
* restore is triggered by the user. */
* restore is triggered by the user.
*
* fvwm randomly sends a focus loss notification when we minimize, so do it
* before checking the incoming messages. It might match WM_ACTIVATEAPP but has
* a wrong WPARAM. Use SW_SHOWMINNOACTIVE to make sure we don't accidentally
* activate the window at this point and miss our WM_ACTIVATEAPP(wparam=1). */
ShowWindow
(
focus_window
,
SW_SHOWMINNOACTIVE
);
flush_events
();
expect_messages
=
reactivate_messages
;
ShowWindow
(
focus_window
,
SW_MINIMIZE
);
ShowWindow
(
focus_window
,
SW_RESTORE
);
/* Set focus twice to make KDE and fvwm in focus-follows-mouse mode happy. */
SetForegroundWindow
(
focus_window
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment