Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a1f5def2
Commit
a1f5def2
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: Always create XIC preedit and status attributes.
parent
41fa67c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
81 deletions
+14
-81
xim.c
dlls/winex11.drv/xim.c
+14
-81
No files found.
dlls/winex11.drv/xim.c
View file @
a1f5def2
...
...
@@ -452,8 +452,7 @@ static BOOL X11DRV_DestroyIC(XIC xic, XPointer p, XPointer data)
XIC
X11DRV_CreateIC
(
XIM
xim
,
struct
x11drv_win_data
*
data
)
{
XPoint
spot
=
{
0
};
XVaNestedList
preedit
=
NULL
;
XVaNestedList
status
=
NULL
;
XVaNestedList
preedit
,
status
;
XIC
xic
;
XICCallback
destroy
=
{(
XPointer
)
data
,
X11DRV_DestroyIC
};
XICCallback
P_StateNotifyCB
,
P_StartCB
,
P_DoneCB
,
P_DrawCB
,
P_CaretCB
;
...
...
@@ -474,88 +473,22 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
P_DrawCB
.
callback
=
(
XICProc
)
XIMPreEditDrawCallback
;
P_CaretCB
.
callback
=
(
XICProc
)
XIMPreEditCaretCallback
;
if
((
ximStyle
&
(
XIMPreeditNothing
|
XIMPreeditNone
))
==
0
)
{
preedit
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
XNSpotLocation
,
&
spot
,
XNPreeditStateNotifyCallback
,
&
P_StateNotifyCB
,
XNPreeditStartCallback
,
&
P_StartCB
,
XNPreeditDoneCallback
,
&
P_DoneCB
,
XNPreeditDrawCallback
,
&
P_DrawCB
,
XNPreeditCaretCallback
,
&
P_CaretCB
,
NULL
);
TRACE
(
"preedit = %p
\n
"
,
preedit
);
}
else
{
preedit
=
XVaCreateNestedList
(
0
,
XNPreeditStateNotifyCallback
,
&
P_StateNotifyCB
,
XNPreeditStartCallback
,
&
P_StartCB
,
XNPreeditDoneCallback
,
&
P_DoneCB
,
XNPreeditDrawCallback
,
&
P_DrawCB
,
XNPreeditCaretCallback
,
&
P_CaretCB
,
NULL
);
TRACE
(
"preedit = %p
\n
"
,
preedit
);
}
if
((
ximStyle
&
(
XIMStatusNothing
|
XIMStatusNone
))
==
0
)
{
status
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
NULL
);
TRACE
(
"status = %p
\n
"
,
status
);
}
if
(
preedit
!=
NULL
&&
status
!=
NULL
)
{
xic
=
XCreateIC
(
xim
,
XNInputStyle
,
ximStyle
,
XNPreeditAttributes
,
preedit
,
XNStatusAttributes
,
status
,
XNClientWindow
,
win
,
XNFocusWindow
,
win
,
XNDestroyCallback
,
&
destroy
,
NULL
);
}
else
if
(
preedit
!=
NULL
)
{
xic
=
XCreateIC
(
xim
,
XNInputStyle
,
ximStyle
,
XNPreeditAttributes
,
preedit
,
XNClientWindow
,
win
,
XNFocusWindow
,
win
,
XNDestroyCallback
,
&
destroy
,
NULL
);
}
else
if
(
status
!=
NULL
)
{
xic
=
XCreateIC
(
xim
,
XNInputStyle
,
ximStyle
,
XNStatusAttributes
,
status
,
XNClientWindow
,
win
,
XNFocusWindow
,
win
,
XNDestroyCallback
,
&
destroy
,
NULL
);
}
else
{
xic
=
XCreateIC
(
xim
,
XNInputStyle
,
ximStyle
,
XNClientWindow
,
win
,
XNFocusWindow
,
win
,
XNDestroyCallback
,
&
destroy
,
NULL
);
}
preedit
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
XNPreeditCaretCallback
,
&
P_CaretCB
,
XNPreeditDoneCallback
,
&
P_DoneCB
,
XNPreeditDrawCallback
,
&
P_DrawCB
,
XNPreeditStartCallback
,
&
P_StartCB
,
XNPreeditStateNotifyCallback
,
&
P_StateNotifyCB
,
XNSpotLocation
,
&
spot
,
NULL
);
status
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
NULL
);
xic
=
XCreateIC
(
xim
,
XNInputStyle
,
ximStyle
,
XNPreeditAttributes
,
preedit
,
XNStatusAttributes
,
status
,
XNClientWindow
,
win
,
XNFocusWindow
,
win
,
XNDestroyCallback
,
&
destroy
,
NULL
);
TRACE
(
"created XIC %p
\n
"
,
xic
);
TRACE
(
"xic = %p
\n
"
,
xic
);
data
->
xic
=
xic
;
if
(
preedit
!=
NULL
)
XFree
(
preedit
);
if
(
status
!=
NULL
)
XFree
(
status
);
XFree
(
preedit
);
XFree
(
status
);
return
xic
;
}
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