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
130278f3
Commit
130278f3
authored
May 21, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Synchronize debug output between X11DRV_KeyEvent and X11DRV_ToUnicodeEx.
parent
15f4bac7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
keyboard.c
dlls/winex11.drv/keyboard.c
+22
-5
No files found.
dlls/winex11.drv/keyboard.c
View file @
130278f3
...
...
@@ -1373,7 +1373,7 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
ascii_chars
=
XLookupString
(
event
,
Str
,
sizeof
(
Str
),
&
keysym
,
NULL
);
wine_tsx11_unlock
();
TRACE_
(
key
)(
"
state = %X nbyte = %d, status 0x%x
\n
"
,
event
->
state
,
ascii_chars
,
status
);
TRACE_
(
key
)(
"
nbyte = %d, status 0x%x
\n
"
,
ascii_chars
,
status
);
if
(
status
==
XBufferOverflow
)
ERR
(
"Buffer Overflow need %i!
\n
"
,
ascii_chars
);
...
...
@@ -1396,7 +1396,6 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
/* Save also all possible modifier states. */
AltGrMask
=
event
->
state
&
(
0x6000
|
Mod1Mask
|
Mod2Mask
|
Mod3Mask
|
Mod4Mask
|
Mod5Mask
);
Str
[
ascii_chars
]
=
'\0'
;
if
(
TRACE_ON
(
key
)){
const
char
*
ksname
;
...
...
@@ -1405,9 +1404,9 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
wine_tsx11_unlock
();
if
(
!
ksname
)
ksname
=
"No Name"
;
TRACE_
(
key
)(
"%s : keysym=%lX (%s), # of chars=%d /
0x%02x / '%s'
\n
"
,
TRACE_
(
key
)(
"%s : keysym=%lX (%s), # of chars=%d /
%s
\n
"
,
(
event
->
type
==
KeyPress
)
?
"KeyPress"
:
"KeyRelease"
,
keysym
,
ksname
,
ascii_chars
,
Str
[
0
]
&
0xff
,
Str
);
keysym
,
ksname
,
ascii_chars
,
debugstr_an
(
Str
,
ascii_chars
)
);
}
wine_tsx11_lock
();
...
...
@@ -2391,7 +2390,7 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
char
lpChar
[
10
];
HWND
focus
;
XIC
xic
;
Status
status
;
Status
status
=
0
;
if
(
scanCode
&
0x8000
)
{
...
...
@@ -2492,6 +2491,24 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
ret
=
XLookupString
(
&
e
,
lpChar
,
sizeof
(
lpChar
),
&
keysym
,
NULL
);
wine_tsx11_unlock
();
TRACE_
(
key
)(
"nbyte = %d, status 0x%x
\n
"
,
ret
,
status
);
if
(
status
==
XBufferOverflow
)
ERR
(
"Buffer Overflow need %d!
\n
"
,
ret
);
if
(
TRACE_ON
(
key
))
{
const
char
*
ksname
;
wine_tsx11_lock
();
ksname
=
XKeysymToString
(
keysym
);
wine_tsx11_unlock
();
if
(
!
ksname
)
ksname
=
"No Name"
;
TRACE_
(
key
)(
"%s : keysym=%lX (%s), # of chars=%d / %s
\n
"
,
(
e
.
type
==
KeyPress
)
?
"KeyPress"
:
"KeyRelease"
,
keysym
,
ksname
,
ret
,
debugstr_an
(
lpChar
,
ret
));
}
if
(
ret
==
0
)
{
char
dead_char
;
...
...
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