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
d84f8dcc
Commit
d84f8dcc
authored
Apr 02, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Early return control flow in xic_preedit_caret.
parent
994d7990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
34 deletions
+33
-34
xim.c
dlls/winex11.drv/xim.c
+33
-34
No files found.
dlls/winex11.drv/xim.c
View file @
d84f8dcc
...
...
@@ -215,46 +215,45 @@ static int xic_preedit_draw( XIC xic, XPointer user, XPointer arg )
static
int
xic_preedit_caret
(
XIC
xic
,
XPointer
user
,
XPointer
arg
)
{
XIMPreeditCaretCallbackStruct
*
P_C
=
(
void
*
)
arg
;
XIMPreeditCaretCallbackStruct
*
params
=
(
void
*
)
arg
;
HWND
hwnd
=
(
HWND
)
user
;
int
pos
;
TRACE
(
"xic %p, hwnd %p, arg %p
\n
"
,
xic
,
hwnd
,
arg
);
if
(
P_C
)
if
(
!
params
)
return
0
;
pos
=
x11drv_client_call
(
client_ime_get_cursor_pos
,
0
);
switch
(
params
->
direction
)
{
int
pos
=
x11drv_client_call
(
client_ime_get_cursor_pos
,
0
);
TRACE
(
"pos: %d
\n
"
,
pos
);
switch
(
P_C
->
direction
)
{
case
XIMForwardChar
:
case
XIMForwardWord
:
pos
++
;
break
;
case
XIMBackwardChar
:
case
XIMBackwardWord
:
pos
--
;
break
;
case
XIMLineStart
:
pos
=
0
;
break
;
case
XIMAbsolutePosition
:
pos
=
P_C
->
position
;
break
;
case
XIMDontChange
:
P_C
->
position
=
pos
;
return
0
;
case
XIMCaretUp
:
case
XIMCaretDown
:
case
XIMPreviousLine
:
case
XIMNextLine
:
case
XIMLineEnd
:
FIXME
(
"Not implemented
\n
"
);
break
;
}
x11drv_client_call
(
client_ime_set_cursor_pos
,
pos
);
P_C
->
position
=
pos
;
case
XIMForwardChar
:
case
XIMForwardWord
:
pos
++
;
break
;
case
XIMBackwardChar
:
case
XIMBackwardWord
:
pos
--
;
break
;
case
XIMLineStart
:
pos
=
0
;
break
;
case
XIMAbsolutePosition
:
pos
=
params
->
position
;
break
;
case
XIMDontChange
:
params
->
position
=
pos
;
return
0
;
case
XIMCaretUp
:
case
XIMCaretDown
:
case
XIMPreviousLine
:
case
XIMNextLine
:
case
XIMLineEnd
:
FIXME
(
"Not implemented
\n
"
);
break
;
}
TRACE
(
"Finished
\n
"
);
x11drv_client_call
(
client_ime_set_cursor_pos
,
pos
);
params
->
position
=
pos
;
return
0
;
}
...
...
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