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
f16dcbbe
Commit
f16dcbbe
authored
Mar 30, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Assume IME UI window always has a valid HIMC.
parent
d69f799c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
ime.c
dlls/winemac.drv/ime.c
+8
-10
No files found.
dlls/winemac.drv/ime.c
View file @
f16dcbbe
...
...
@@ -497,7 +497,7 @@ static void UpdateDataInDefaultIMEWindow(HIMC hIMC, HWND hwnd, BOOL showable)
LPCOMPOSITIONSTRING
compstr
;
LPINPUTCONTEXT
lpIMC
;
lpIMC
=
LockReal
IMC
(
hIMC
);
lpIMC
=
ImmLock
IMC
(
hIMC
);
if
(
lpIMC
==
NULL
)
return
;
...
...
@@ -516,7 +516,7 @@ static void UpdateDataInDefaultIMEWindow(HIMC hIMC, HWND hwnd, BOOL showable)
if
(
compstr
!=
NULL
)
ImmUnlockIMCC
(
lpIMC
->
hCompStr
);
UnlockReal
IMC
(
hIMC
);
ImmUnlock
IMC
(
hIMC
);
}
BOOL
WINAPI
ImeDestroy
(
UINT
uForce
)
...
...
@@ -944,7 +944,7 @@ static void PaintDefaultIMEWnd(HIMC hIMC, HWND hwnd)
INT
offX
=
0
,
offY
=
0
;
LPINPUTCONTEXT
lpIMC
;
lpIMC
=
LockReal
IMC
(
hIMC
);
lpIMC
=
ImmLock
IMC
(
hIMC
);
if
(
lpIMC
==
NULL
)
return
;
...
...
@@ -1059,7 +1059,7 @@ static void PaintDefaultIMEWnd(HIMC hIMC, HWND hwnd)
ImmUnlockIMCC
(
lpIMC
->
hCompStr
);
EndPaint
(
hwnd
,
&
ps
);
UnlockReal
IMC
(
hIMC
);
ImmUnlock
IMC
(
hIMC
);
}
static
void
DefaultIMEComposition
(
HIMC
hIMC
,
HWND
hwnd
,
LPARAM
lParam
)
...
...
@@ -1073,14 +1073,14 @@ static void DefaultIMEStartComposition(HIMC hIMC, HWND hwnd)
{
LPINPUTCONTEXT
lpIMC
;
lpIMC
=
LockReal
IMC
(
hIMC
);
lpIMC
=
ImmLock
IMC
(
hIMC
);
if
(
lpIMC
==
NULL
)
return
;
TRACE
(
"IME message WM_IME_STARTCOMPOSITION
\n
"
);
lpIMC
->
hWnd
=
GetFocus
();
ShowWindow
(
hwnd
,
SW_SHOWNOACTIVATE
);
UnlockReal
IMC
(
hIMC
);
ImmUnlock
IMC
(
hIMC
);
}
static
LRESULT
ImeHandleNotify
(
HIMC
hIMC
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -1149,8 +1149,6 @@ static LRESULT WINAPI IME_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
*/
hIMC
=
(
HIMC
)
GetWindowLongPtrW
(
hwnd
,
IMMGWL_IMC
);
if
(
!
hIMC
)
hIMC
=
RealIMC
(
FROM_MACDRV
);
/* if we have no hIMC there are many messages we cannot process */
if
(
hIMC
==
NULL
)
...
...
@@ -1179,14 +1177,14 @@ static LRESULT WINAPI IME_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
SetWindowTextA
(
hwnd
,
"Wine Ime Active"
);
lpIMC
=
LockReal
IMC
(
hIMC
);
lpIMC
=
ImmLock
IMC
(
hIMC
);
if
(
lpIMC
)
{
myPrivate
=
ImmLockIMCC
(
lpIMC
->
hPrivate
);
myPrivate
->
hwndDefault
=
hwnd
;
ImmUnlockIMCC
(
lpIMC
->
hPrivate
);
}
UnlockReal
IMC
(
hIMC
);
ImmUnlock
IMC
(
hIMC
);
return
TRUE
;
}
...
...
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