Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
70ad65d8
Commit
70ad65d8
authored
Jul 15, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move default window proc to IME window forwarding implementation from user32.
parent
51f414bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
35 deletions
+15
-35
defwnd.c
dlls/user32/defwnd.c
+0
-35
defwnd.c
dlls/win32u/defwnd.c
+15
-0
No files found.
dlls/user32/defwnd.c
View file @
70ad65d8
...
...
@@ -147,23 +147,6 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
}
}
/* fall through */
case
WM_IME_STARTCOMPOSITION
:
case
WM_IME_ENDCOMPOSITION
:
case
WM_IME_SELECT
:
case
WM_IME_NOTIFY
:
case
WM_IME_CONTROL
:
{
HWND
hwndIME
=
ImmGetDefaultIMEWnd
(
hwnd
);
if
(
hwndIME
)
result
=
SendMessageA
(
hwndIME
,
msg
,
wParam
,
lParam
);
}
break
;
case
WM_IME_SETCONTEXT
:
{
HWND
hwndIME
=
ImmGetDefaultIMEWnd
(
hwnd
);
if
(
hwndIME
)
result
=
ImmIsUIMessageA
(
hwndIME
,
msg
,
wParam
,
lParam
);
}
break
;
default:
result
=
NtUserMessageCall
(
hwnd
,
msg
,
wParam
,
lParam
,
0
,
NtUserDefWindowProc
,
TRUE
);
...
...
@@ -220,13 +203,6 @@ LRESULT WINAPI DefWindowProcW(
result
=
PostMessageW
(
hwnd
,
WM_KEYUP
,
wParam
,
lParam
);
break
;
case
WM_IME_SETCONTEXT
:
{
HWND
hwndIME
=
ImmGetDefaultIMEWnd
(
hwnd
);
if
(
hwndIME
)
result
=
ImmIsUIMessageW
(
hwndIME
,
msg
,
wParam
,
lParam
);
}
break
;
case
WM_IME_COMPOSITION
:
if
(
lParam
&
GCS_RESULTSTR
)
{
...
...
@@ -249,17 +225,6 @@ LRESULT WINAPI DefWindowProcW(
}
}
/* fall through */
case
WM_IME_STARTCOMPOSITION
:
case
WM_IME_ENDCOMPOSITION
:
case
WM_IME_SELECT
:
case
WM_IME_NOTIFY
:
case
WM_IME_CONTROL
:
{
HWND
hwndIME
=
ImmGetDefaultIMEWnd
(
hwnd
);
if
(
hwndIME
)
result
=
SendMessageW
(
hwndIME
,
msg
,
wParam
,
lParam
);
}
break
;
default:
result
=
NtUserMessageCall
(
hwnd
,
msg
,
wParam
,
lParam
,
0
,
NtUserDefWindowProc
,
FALSE
);
...
...
dlls/win32u/defwnd.c
View file @
70ad65d8
...
...
@@ -2901,6 +2901,21 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
free
(
win_array
);
break
;
}
case
WM_IME_SETCONTEXT
:
case
WM_IME_COMPOSITION
:
case
WM_IME_STARTCOMPOSITION
:
case
WM_IME_ENDCOMPOSITION
:
case
WM_IME_SELECT
:
case
WM_IME_NOTIFY
:
case
WM_IME_CONTROL
:
{
HWND
ime_hwnd
=
get_default_ime_window
(
hwnd
);
if
(
ime_hwnd
)
result
=
NtUserMessageCall
(
ime_hwnd
,
msg
,
wparam
,
lparam
,
0
,
NtUserSendMessage
,
ansi
);
}
break
;
}
return
result
;
...
...
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