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
30872b0e
Commit
30872b0e
authored
Feb 12, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fold X11DRV_ImmSetOpenStatus into XIMPreEditDoneCallback.
parent
3739dcd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
xim.c
dlls/winex11.drv/xim.c
+7
-17
No files found.
dlls/winex11.drv/xim.c
View file @
30872b0e
...
...
@@ -122,25 +122,10 @@ void X11DRV_XIMLookupChars( const char *str, DWORD count )
HeapFree
(
GetProcessHeap
(),
0
,
wcOutput
);
}
static
void
X11DRV_ImmSetOpenStatus
(
BOOL
fOpen
)
{
if
(
fOpen
==
FALSE
)
{
if
(
dwCompStringSize
)
HeapFree
(
GetProcessHeap
(),
0
,
CompositionString
);
dwCompStringSize
=
0
;
dwCompStringLength
=
0
;
CompositionString
=
NULL
;
}
IME_SetOpenStatus
(
fOpen
);
}
static
int
XIMPreEditStartCallback
(
XIC
ic
,
XPointer
client_data
,
XPointer
call_data
)
{
TRACE
(
"PreEditStartCallback %p
\n
"
,
ic
);
X11DRV_Imm
SetOpenStatus
(
TRUE
);
IME_
SetOpenStatus
(
TRUE
);
ximInComposeMode
=
TRUE
;
return
-
1
;
}
...
...
@@ -149,7 +134,12 @@ static void XIMPreEditDoneCallback(XIC ic, XPointer client_data, XPointer call_d
{
TRACE
(
"PreeditDoneCallback %p
\n
"
,
ic
);
ximInComposeMode
=
FALSE
;
X11DRV_ImmSetOpenStatus
(
FALSE
);
if
(
dwCompStringSize
)
HeapFree
(
GetProcessHeap
(),
0
,
CompositionString
);
dwCompStringSize
=
0
;
dwCompStringLength
=
0
;
CompositionString
=
NULL
;
IME_SetOpenStatus
(
FALSE
);
}
static
void
XIMPreEditDrawCallback
(
XIM
ic
,
XPointer
client_data
,
...
...
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