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
edd24b61
Commit
edd24b61
authored
Oct 18, 2008
by
Muneyuki Noguchi
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Prevent XCreateIC from returning NULL when input style isn't "root".
parent
a226f660
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-0
xim.c
dlls/winex11.drv/xim.c
+23
-0
No files found.
dlls/winex11.drv/x11drv.h
View file @
edd24b61
...
...
@@ -515,6 +515,7 @@ struct x11drv_thread_data
Window
grab_window
;
/* window that currently grabs the mouse */
HWND
last_focus
;
/* last window that had focus */
XIM
xim
;
/* input method */
XFontSet
font_set
;
/* international text drawing font set */
Window
selection_wnd
;
/* window used for selection interactions */
};
...
...
dlls/winex11.drv/x11drv_main.c
View file @
edd24b61
...
...
@@ -562,6 +562,7 @@ static void thread_detach(void)
X11DRV_ResetSelectionOwner
();
wine_tsx11_lock
();
if
(
data
->
xim
)
XCloseIM
(
data
->
xim
);
if
(
data
->
font_set
)
XFreeFontSet
(
data
->
display
,
data
->
font_set
);
XCloseDisplay
(
data
->
display
);
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
dlls/winex11.drv/xim.c
View file @
edd24b61
...
...
@@ -477,6 +477,26 @@ static BOOL open_xim( Display *display )
thread_data
->
xim
=
xim
;
if
((
ximStyle
&
(
XIMPreeditNothing
|
XIMPreeditNone
))
==
0
||
(
ximStyle
&
(
XIMStatusNothing
|
XIMStatusNone
))
==
0
)
{
char
**
list
;
int
count
;
thread_data
->
font_set
=
XCreateFontSet
(
display
,
"fixed"
,
&
list
,
&
count
,
NULL
);
TRACE
(
"ximFontSet = %p
\n
"
,
thread_data
->
font_set
);
TRACE
(
"list = %p, count = %d
\n
"
,
list
,
count
);
if
(
list
!=
NULL
)
{
int
i
;
for
(
i
=
0
;
i
<
count
;
++
i
)
TRACE
(
"list[%d] = %s
\n
"
,
i
,
list
[
i
]);
XFreeStringList
(
list
);
}
}
else
thread_data
->
font_set
=
NULL
;
wine_tsx11_unlock
();
IME_UpdateAssociation
(
NULL
);
wine_tsx11_lock
();
...
...
@@ -518,6 +538,7 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
XICCallback
P_StartCB
,
P_DoneCB
,
P_DrawCB
,
P_CaretCB
;
LANGID
langid
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetThreadLocale
()));
Window
win
=
data
->
whole_window
;
XFontSet
fontSet
=
x11drv_thread_data
()
->
font_set
;
TRACE
(
"xim = %p
\n
"
,
xim
);
...
...
@@ -552,6 +573,7 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
if
((
ximStyle
&
(
XIMPreeditNothing
|
XIMPreeditNone
))
==
0
)
{
preedit
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
XNSpotLocation
,
&
spot
,
XNPreeditStartCallback
,
&
P_StartCB
,
XNPreeditDoneCallback
,
&
P_DoneCB
,
...
...
@@ -575,6 +597,7 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
if
((
ximStyle
&
(
XIMStatusNothing
|
XIMStatusNone
))
==
0
)
{
status
=
XVaCreateNestedList
(
0
,
XNFontSet
,
fontSet
,
NULL
);
TRACE
(
"status = %p
\n
"
,
status
);
}
...
...
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