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
3f02c27d
Commit
3f02c27d
authored
Jul 24, 2007
by
Nigel Liang
Committed by
Alexandre Julliard
Jul 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Take into account position of preedit area in PreEditCaretCallback.
parent
6af199ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
xim.c
dlls/winex11.drv/xim.c
+5
-1
No files found.
dlls/winex11.drv/xim.c
View file @
3f02c27d
...
...
@@ -61,6 +61,7 @@ static LPBYTE CompositionString = NULL;
static
DWORD
dwCompStringSize
=
0
;
static
LPBYTE
ResultString
=
NULL
;
static
DWORD
dwResultStringSize
=
0
;
static
DWORD
dwPreeditPos
=
0
;
static
HMODULE
hImmDll
=
NULL
;
static
HIMC
(
WINAPI
*
pImmAssociateContext
)(
HWND
,
HIMC
);
...
...
@@ -276,6 +277,8 @@ static int XIMPreEditStartCallback(XIC ic, XPointer client_data, XPointer call_d
TRACE
(
"PreEditStartCallback %p
\n
"
,
ic
);
X11DRV_ImmSetOpenStatus
(
TRUE
);
ximInComposeMode
=
TRUE
;
SendMessageW
(((
InputContextData
*
)
root_context
)
->
IMC
.
hWnd
,
EM_GETSEL
,
0
,
(
LPARAM
)
&
dwPreeditPos
);
return
-
1
;
}
...
...
@@ -284,6 +287,7 @@ static void XIMPreEditDoneCallback(XIC ic, XPointer client_data, XPointer call_d
TRACE
(
"PreeditDoneCallback %p
\n
"
,
ic
);
ximInComposeMode
=
FALSE
;
X11DRV_ImmSetOpenStatus
(
FALSE
);
dwPreeditPos
=
0
;
}
static
void
XIMPreEditDrawCallback
(
XIM
ic
,
XPointer
client_data
,
...
...
@@ -362,7 +366,7 @@ static void XIMPreEditCaretCallback(XIC ic, XPointer client_data,
break
;
}
SendMessageW
(((
InputContextData
*
)
root_context
)
->
IMC
.
hWnd
,
EM_SETSEL
,
pos
,
pos
);
EM_SETSEL
,
dwPreeditPos
+
pos
,
dwPreeditPos
+
pos
);
P_C
->
position
=
pos
;
}
TRACE
(
"Finished
\n
"
);
...
...
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