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
4f944f7f
Commit
4f944f7f
authored
Feb 27, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Make sure keyboard state is up to date before processing GetAsyncKeyState.
parent
abfe105c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
keyboard.c
dlls/winex11.drv/keyboard.c
+6
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-0
No files found.
dlls/winex11.drv/keyboard.c
View file @
4f944f7f
...
...
@@ -1835,8 +1835,12 @@ void X11DRV_InitKeyboard(void)
*/
SHORT
X11DRV_GetAsyncKeyState
(
INT
key
)
{
SHORT
retval
=
((
key_state_table
[
key
]
&
0x40
)
?
0x0001
:
0
)
|
((
key_state_table
[
key
]
&
0x80
)
?
0x8000
:
0
);
SHORT
retval
;
X11DRV_MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_KEY
,
0
);
retval
=
((
key_state_table
[
key
]
&
0x40
)
?
0x0001
:
0
)
|
((
key_state_table
[
key
]
&
0x80
)
?
0x8000
:
0
);
key_state_table
[
key
]
&=
~
0x40
;
TRACE_
(
key
)(
"(%x) -> %x
\n
"
,
key
,
retval
);
return
retval
;
...
...
dlls/winex11.drv/x11drv.h
View file @
4f944f7f
...
...
@@ -673,6 +673,8 @@ extern void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWO
DWORD
dwExtraInfo
,
UINT
injected_flags
);
extern
void
X11DRV_send_mouse_input
(
HWND
hwnd
,
DWORD
flags
,
DWORD
x
,
DWORD
y
,
DWORD
data
,
DWORD
time
,
DWORD
extra_info
,
UINT
injected_flags
);
extern
DWORD
X11DRV_MsgWaitForMultipleObjectsEx
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
timeout
,
DWORD
mask
,
DWORD
flags
);
typedef
int
(
*
x11drv_error_callback
)(
Display
*
display
,
XErrorEvent
*
event
,
void
*
arg
);
...
...
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