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
ac3646cc
Commit
ac3646cc
authored
Feb 19, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Clients should pass only KeyPress events to XmbLookupString.
parent
89faee01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
keyboard.c
dlls/winex11.drv/keyboard.c
+7
-2
No files found.
dlls/winex11.drv/keyboard.c
View file @
ac3646cc
...
...
@@ -1124,7 +1124,8 @@ static WORD EVENT_event_to_vkey( XIC xic, XKeyEvent *e)
Status
status
;
char
buf
[
24
];
if
(
xic
)
/* Clients should pass only KeyPress events to XmbLookupString */
if
(
xic
&&
e
->
type
==
KeyPress
)
XmbLookupString
(
xic
,
e
,
buf
,
sizeof
(
buf
),
&
keysym
,
&
status
);
else
XLookupString
(
e
,
buf
,
sizeof
(
buf
),
&
keysym
,
NULL
);
...
...
@@ -1365,7 +1366,8 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
event
->
type
,
event
->
window
,
event
->
state
,
event
->
keycode
);
wine_tsx11_lock
();
if
(
xic
)
/* Clients should pass only KeyPress events to XmbLookupString */
if
(
xic
&&
event
->
type
==
KeyPress
)
ascii_chars
=
XmbLookupString
(
xic
,
event
,
Str
,
sizeof
(
Str
),
&
keysym
,
&
status
);
else
ascii_chars
=
XLookupString
(
event
,
Str
,
sizeof
(
Str
),
&
keysym
,
NULL
);
...
...
@@ -2486,6 +2488,9 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
TRACE_
(
key
)(
"type %d, window %lx, state 0x%04x, keycode 0x%04x
\n
"
,
e
.
type
,
e
.
window
,
e
.
state
,
e
.
keycode
);
/* Clients should pass only KeyPress events to XmbLookupString,
* e.type was set to KeyPress above.
*/
if
(
xic
)
ret
=
XmbLookupString
(
xic
,
&
e
,
lpChar
,
sizeof
(
lpChar
),
&
keysym
,
&
status
);
else
...
...
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