Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
08177b1b
Commit
08177b1b
authored
Aug 31, 2023
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Don't fail d3d9ex if the window manager restores focus too soon.
parent
6afe77a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+25
-1
No files found.
dlls/d3d9/tests/d3d9ex.c
View file @
08177b1b
...
...
@@ -3015,13 +3015,37 @@ static void test_wndproc(void)
expect_messages
->
message
,
expect_messages
->
window
,
i
);
ok
(
!
windowposchanged_received
,
"Received WM_WINDOWPOSCHANGED but did not expect it, i=%u.
\n
"
,
i
);
expect_messages
=
NULL
;
flush_events
();
ret
=
EnumDisplaySettingsW
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
devmode
);
ok
(
ret
,
"Failed to get display mode.
\n
"
);
ok
(
devmode
.
dmPelsWidth
==
registry_mode
.
dmPelsWidth
,
"Got unexpected width %lu.
\n
"
,
devmode
.
dmPelsWidth
);
ok
(
devmode
.
dmPelsHeight
==
registry_mode
.
dmPelsHeight
,
"Got unexpected height %lu.
\n
"
,
devmode
.
dmPelsHeight
);
flush_events
();
/* Openbox accidentally sets focus to the device window, causing WM_ACTIVATEAPP to be sent to the focus
* window. d3d9ex then restores the screen mode. This only happens in the D3DCREATE_NOWINDOWCHANGES case.
*
* This appears to be a race condition - it goes away if openbox is started with --sync. d3d9:device and
* d3d8:device are affected too, but because in their case d3d does not automatically restore the screen
* mode (it needs a call to device::Reset), the EnumDisplaySettings check succeeds regardless.
*
* Note that this is not a case of focus follows mouse. This happens when Openbox is configured to use
* click to focus too. */
if
(
GetForegroundWindow
()
==
device_window
)
{
skip
(
"WM set focus to the device window, not checking screen mode.
\n
"
);
}
else
{
ret
=
EnumDisplaySettingsW
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
devmode
);
ok
(
ret
,
"Failed to get display mode.
\n
"
);
ok
(
devmode
.
dmPelsWidth
==
registry_mode
.
dmPelsWidth
,
"Got unexpected width %lu.
\n
"
,
devmode
.
dmPelsWidth
);
ok
(
devmode
.
dmPelsHeight
==
registry_mode
.
dmPelsHeight
,
"Got unexpected height %lu.
\n
"
,
devmode
.
dmPelsHeight
);
}
/* SW_SHOWMINNOACTIVE is needed to make FVWM happy. SW_SHOWNOACTIVATE is needed to make windows
* send SIZE_RESTORED after ShowWindow(SW_SHOWMINNOACTIVE). */
ShowWindow
(
focus_window
,
SW_SHOWNOACTIVATE
);
...
...
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