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
e5f0cdfc
Commit
e5f0cdfc
authored
Feb 16, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Show the default IME window only when necessary.
parent
9cbb80d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
ime.c
dlls/winex11.drv/ime.c
+8
-17
No files found.
dlls/winex11.drv/ime.c
View file @
e5f0cdfc
...
...
@@ -87,7 +87,6 @@ static UINT WM_MSIME_DOCUMENTFEED;
static
LRESULT
WINAPI
IME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
void
UpdateDataInDefaultIMEWindow
(
HIMC
hHIMC
,
HWND
hwnd
,
BOOL
showable
);
static
HIMC
RealIMC
(
HIMC
hIMC
)
{
...
...
@@ -933,8 +932,6 @@ BOOL WINAPI ImeSetCompositionString(HIMC hIMC, DWORD dwIndex, LPCVOID lpComp,
}
}
UpdateDataInDefaultIMEWindow
(
hIMC
,
myPrivate
->
hwndDefault
,
FALSE
);
GenerateIMEMessage
(
hIMC
,
WM_IME_COMPOSITION
,
wParam
,
flags
);
ImmUnlockIMCC
(
lpIMC
->
hPrivate
);
UnlockRealIMC
(
hIMC
);
...
...
@@ -1199,7 +1196,7 @@ static void PaintDefaultIMEWnd(HIMC hIMC, HWND hwnd)
UnlockRealIMC
(
hIMC
);
}
static
void
UpdateD
ataInDefaultIMEWindow
(
HIMC
hIMC
,
HWND
hwnd
,
BOOL
showable
)
static
void
UpdateD
efaultIMEWindow
(
HIMC
hIMC
,
HWND
hwnd
)
{
LPCOMPOSITIONSTRING
compstr
;
LPINPUTCONTEXT
lpIMC
;
...
...
@@ -1215,14 +1212,16 @@ static void UpdateDataInDefaultIMEWindow(HIMC hIMC, HWND hwnd, BOOL showable)
if
(
compstr
==
NULL
||
compstr
->
dwCompStrLen
==
0
)
ShowWindow
(
hwnd
,
SW_HIDE
);
else
if
(
showable
)
else
{
ShowWindow
(
hwnd
,
SW_SHOWNOACTIVATE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_ERASENOW
|
RDW_INVALIDATE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_ERASENOW
|
RDW_INVALIDATE
);
}
if
(
compstr
!=
NULL
)
ImmUnlockIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hWnd
=
GetFocus
();
UnlockRealIMC
(
hIMC
);
}
...
...
@@ -1255,21 +1254,13 @@ static void DefaultIMEComposition(HIMC hIMC, HWND hwnd, LPARAM lParam)
UnlockRealIMC
(
hIMC
);
}
else
UpdateDataInDefaultIMEWindow
(
hIMC
,
hwnd
,
TRUE
);
UpdateDefaultIMEWindow
(
hIMC
,
hwnd
);
}
static
void
DefaultIMEStartComposition
(
HIMC
hIMC
,
HWND
hwnd
)
{
LPINPUTCONTEXT
lpIMC
;
lpIMC
=
LockRealIMC
(
hIMC
);
if
(
lpIMC
==
NULL
)
return
;
TRACE
(
"IME message WM_IME_STARTCOMPOSITION
\n
"
);
lpIMC
->
hWnd
=
GetFocus
();
ShowWindow
(
hwnd
,
SW_SHOWNOACTIVATE
);
UnlockRealIMC
(
hIMC
);
UpdateDefaultIMEWindow
(
hIMC
,
hwnd
);
}
static
LRESULT
ImeHandleNotify
(
HIMC
hIMC
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
...
...
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