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
809d4783
Commit
809d4783
authored
Jul 25, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Flush events more aggressively in mouse input test.
parent
cb0a626e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
win.c
dlls/user32/tests/win.c
+4
-6
No files found.
dlls/user32/tests/win.c
View file @
809d4783
...
...
@@ -2507,7 +2507,7 @@ static void test_mouse_input(HWND hwnd)
GetCursorPos
(
&
pt
);
ok
(
x
==
pt
.
x
&&
y
==
pt
.
y
,
"wrong cursor pos (%d,%d), expected (%d,%d)
\n
"
,
pt
.
x
,
pt
.
y
,
x
,
y
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
flush_events
(
);
/* Check that setting the same position will generate WM_MOUSEMOVE */
SetCursorPos
(
x
,
y
);
...
...
@@ -2520,7 +2520,7 @@ static void test_mouse_input(HWND hwnd)
* otherwise it won't generate relative mouse movements below.
*/
mouse_event
(
MOUSEEVENTF_MOVE
,
-
1
,
-
1
,
0
,
0
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
flush_events
(
);
msg
.
message
=
0
;
mouse_event
(
MOUSEEVENTF_MOVE
,
1
,
1
,
0
,
0
);
...
...
@@ -2536,7 +2536,7 @@ static void test_mouse_input(HWND hwnd)
ShowWindow
(
popup
,
SW_HIDE
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"no message available
\n
"
);
ok
(
msg
.
hwnd
==
hwnd
&&
msg
.
message
==
WM_MOUSEMOVE
,
"hwnd %p message %04x
\n
"
,
msg
.
hwnd
,
msg
.
message
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
flush_events
(
);
mouse_event
(
MOUSEEVENTF_MOVE
,
1
,
1
,
0
,
0
);
ShowWindow
(
hwnd
,
SW_HIDE
);
...
...
@@ -2547,8 +2547,6 @@ static void test_mouse_input(HWND hwnd)
ShowWindow
(
hwnd
,
SW_SHOW
);
ShowWindow
(
popup
,
SW_SHOW
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
flush_events
();
mouse_event
(
MOUSEEVENTF_LEFTDOWN
,
0
,
0
,
0
,
0
);
...
...
@@ -2580,7 +2578,7 @@ static void test_mouse_input(HWND hwnd)
ok
(
!
ret
,
"message %04x available
\n
"
,
msg
.
message
);
ShowWindow
(
popup
,
SW_HIDE
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
flush_events
(
);
mouse_event
(
MOUSEEVENTF_LEFTDOWN
,
0
,
0
,
0
,
0
);
mouse_event
(
MOUSEEVENTF_LEFTUP
,
0
,
0
,
0
,
0
);
...
...
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