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
64cca153
Commit
64cca153
authored
Apr 02, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Cleanup XIM initialization traces.
parent
f1f0386c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
xim.c
dlls/winex11.drv/xim.c
+26
-12
No files found.
dlls/winex11.drv/xim.c
View file @
64cca153
...
@@ -61,6 +61,26 @@ static XIMStyle ximStyle = 0;
...
@@ -61,6 +61,26 @@ static XIMStyle ximStyle = 0;
static
XIMStyle
ximStyleRoot
=
0
;
static
XIMStyle
ximStyleRoot
=
0
;
static
XIMStyle
ximStyleRequest
=
STYLE_CALLBACK
;
static
XIMStyle
ximStyleRequest
=
STYLE_CALLBACK
;
static
const
char
*
debugstr_xim_style
(
XIMStyle
style
)
{
char
buffer
[
1024
],
*
buf
=
buffer
;
buf
+=
sprintf
(
buf
,
"preedit"
);
if
(
style
&
XIMPreeditArea
)
buf
+=
sprintf
(
buf
,
" area"
);
if
(
style
&
XIMPreeditCallbacks
)
buf
+=
sprintf
(
buf
,
" callbacks"
);
if
(
style
&
XIMPreeditPosition
)
buf
+=
sprintf
(
buf
,
" position"
);
if
(
style
&
XIMPreeditNothing
)
buf
+=
sprintf
(
buf
,
" nothing"
);
if
(
style
&
XIMPreeditNone
)
buf
+=
sprintf
(
buf
,
" none"
);
buf
+=
sprintf
(
buf
,
", status"
);
if
(
style
&
XIMStatusArea
)
buf
+=
sprintf
(
buf
,
" area"
);
if
(
style
&
XIMStatusCallbacks
)
buf
+=
sprintf
(
buf
,
" callbacks"
);
if
(
style
&
XIMStatusNothing
)
buf
+=
sprintf
(
buf
,
" nothing"
);
if
(
style
&
XIMStatusNone
)
buf
+=
sprintf
(
buf
,
" none"
);
return
wine_dbg_sprintf
(
"%s"
,
buffer
);
}
static
void
X11DRV_ImmSetInternalString
(
UINT
offset
,
UINT
selLength
,
LPWSTR
lpComp
,
UINT
len
)
static
void
X11DRV_ImmSetInternalString
(
UINT
offset
,
UINT
selLength
,
LPWSTR
lpComp
,
UINT
len
)
{
{
/* Composition strings are edited in chunks */
/* Composition strings are edited in chunks */
...
@@ -338,9 +358,8 @@ static XIM xim_create( struct x11drv_thread_data *data )
...
@@ -338,9 +358,8 @@ static XIM xim_create( struct x11drv_thread_data *data )
if
(
XSetIMValues
(
xim
,
XNDestroyCallback
,
&
destroy
,
NULL
))
if
(
XSetIMValues
(
xim
,
XNDestroyCallback
,
&
destroy
,
NULL
))
WARN
(
"Could not set destroy callback.
\n
"
);
WARN
(
"Could not set destroy callback.
\n
"
);
TRACE
(
"xim = %p
\n
"
,
xim
);
TRACE
(
"xim %p, XDisplayOfIM %p, XLocaleOfIM %s
\n
"
,
xim
,
XDisplayOfIM
(
xim
),
TRACE
(
"X display of IM = %p
\n
"
,
XDisplayOfIM
(
xim
));
debugstr_a
(
XLocaleOfIM
(
xim
))
);
TRACE
(
"Using %s locale of Input Method
\n
"
,
XLocaleOfIM
(
xim
));
XGetIMValues
(
xim
,
XNQueryInputStyle
,
&
ximStyles
,
NULL
);
XGetIMValues
(
xim
,
XNQueryInputStyle
,
&
ximStyles
,
NULL
);
if
(
ximStyles
==
0
)
if
(
ximStyles
==
0
)
...
@@ -350,21 +369,16 @@ static XIM xim_create( struct x11drv_thread_data *data )
...
@@ -350,21 +369,16 @@ static XIM xim_create( struct x11drv_thread_data *data )
return
NULL
;
return
NULL
;
}
}
TRACE
(
"ximStyles->count_styles = %d
\n
"
,
ximStyles
->
count_styles
);
ximStyleRoot
=
0
;
ximStyleRoot
=
0
;
ximStyleNone
=
0
;
ximStyleNone
=
0
;
ximStyle
=
0
;
ximStyle
=
0
;
TRACE
(
"input styles count %u
\n
"
,
ximStyles
->
count_styles
);
for
(
i
=
0
;
i
<
ximStyles
->
count_styles
;
++
i
)
for
(
i
=
0
;
i
<
ximStyles
->
count_styles
;
++
i
)
{
{
int
style
=
ximStyles
->
supported_styles
[
i
];
XIMStyle
style
=
ximStyles
->
supported_styles
[
i
];
TRACE
(
"ximStyles[%d] = %s%s%s%s%s
\n
"
,
i
,
TRACE
(
" %u: %#lx %s
\n
"
,
i
,
style
,
debugstr_xim_style
(
style
)
);
(
style
&
XIMPreeditArea
)
?
"XIMPreeditArea "
:
""
,
(
style
&
XIMPreeditCallbacks
)
?
"XIMPreeditCallbacks "
:
""
,
(
style
&
XIMPreeditPosition
)
?
"XIMPreeditPosition "
:
""
,
(
style
&
XIMPreeditNothing
)
?
"XIMPreeditNothing "
:
""
,
(
style
&
XIMPreeditNone
)
?
"XIMPreeditNone "
:
""
);
if
(
!
ximStyle
&&
(
ximStyles
->
supported_styles
[
i
]
==
if
(
!
ximStyle
&&
(
ximStyles
->
supported_styles
[
i
]
==
ximStyleRequest
))
ximStyleRequest
))
{
{
...
...
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