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
d5244c3b
Commit
d5244c3b
authored
Oct 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Flush window surfaces in all functions that are used to poll for input.
parent
cfef60a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
input.c
dlls/user32/input.c
+12
-6
No files found.
dlls/user32/input.c
View file @
d5244c3b
...
...
@@ -353,6 +353,12 @@ HWND WINAPI GetCapture(void)
}
static
void
check_for_events
(
UINT
flags
)
{
if
(
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
flags
,
0
)
==
WAIT_TIMEOUT
)
flush_window_surfaces
(
TRUE
);
}
/**********************************************************************
* GetAsyncKeyState (USER32.@)
*
...
...
@@ -367,6 +373,8 @@ SHORT WINAPI DECLSPEC_HOTPATCH GetAsyncKeyState( INT key )
if
(
key
<
0
||
key
>=
256
)
return
0
;
check_for_events
(
QS_INPUT
);
if
((
ret
=
USER_Driver
->
pGetAsyncKeyState
(
key
))
==
-
1
)
{
if
(
thread_info
->
key_state
&&
...
...
@@ -400,7 +408,7 @@ SHORT WINAPI DECLSPEC_HOTPATCH GetAsyncKeyState( INT key )
*/
DWORD
WINAPI
GetQueueStatus
(
UINT
flags
)
{
DWORD
ret
=
0
;
DWORD
ret
;
if
(
flags
&
~
(
QS_ALLINPUT
|
QS_ALLPOSTMESSAGE
|
QS_SMRESULT
))
{
...
...
@@ -408,8 +416,7 @@ DWORD WINAPI GetQueueStatus( UINT flags )
return
0
;
}
/* check for pending X events */
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
flags
,
0
);
check_for_events
(
flags
);
SERVER_START_REQ
(
get_queue_status
)
{
...
...
@@ -427,10 +434,9 @@ DWORD WINAPI GetQueueStatus( UINT flags )
*/
BOOL
WINAPI
GetInputState
(
void
)
{
DWORD
ret
=
0
;
DWORD
ret
;
/* check for pending X events */
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_INPUT
,
0
);
check_for_events
(
QS_INPUT
);
SERVER_START_REQ
(
get_queue_status
)
{
...
...
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