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
bbfb15a5
Commit
bbfb15a5
authored
May 09, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Update the IME composition window position after drawing.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53860
parent
354a8bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ime.c
dlls/imm32/ime.c
+8
-3
No files found.
dlls/imm32/ime.c
View file @
bbfb15a5
...
@@ -186,7 +186,7 @@ static UINT ime_set_composition_status( HIMC himc, BOOL composition )
...
@@ -186,7 +186,7 @@ static UINT ime_set_composition_status( HIMC himc, BOOL composition )
static
void
ime_ui_paint
(
HIMC
himc
,
HWND
hwnd
)
static
void
ime_ui_paint
(
HIMC
himc
,
HWND
hwnd
)
{
{
PAINTSTRUCT
ps
;
PAINTSTRUCT
ps
;
RECT
rect
;
RECT
rect
,
new_rect
;
HDC
hdc
;
HDC
hdc
;
HMONITOR
monitor
;
HMONITOR
monitor
;
MONITORINFO
mon_info
;
MONITORINFO
mon_info
;
...
@@ -201,6 +201,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
...
@@ -201,6 +201,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)(
COLOR_WINDOW
+
1
)
);
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)(
COLOR_WINDOW
+
1
)
);
new_rect
=
rect
;
if
((
str
=
input_context_get_comp_str
(
ctx
,
FALSE
,
&
len
)))
if
((
str
=
input_context_get_comp_str
(
ctx
,
FALSE
,
&
len
)))
{
{
...
@@ -233,6 +234,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
...
@@ -233,6 +234,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
rect
.
top
=
cpt
.
y
;
rect
.
top
=
cpt
.
y
;
rect
.
right
=
rect
.
left
+
pt
.
x
;
rect
.
right
=
rect
.
left
+
pt
.
x
;
rect
.
bottom
=
rect
.
top
+
pt
.
y
;
rect
.
bottom
=
rect
.
top
+
pt
.
y
;
offset
.
x
=
offset
.
y
=
0
;
monitor
=
MonitorFromPoint
(
cpt
,
MONITOR_DEFAULTTOPRIMARY
);
monitor
=
MonitorFromPoint
(
cpt
,
MONITOR_DEFAULTTOPRIMARY
);
}
}
else
/* CFS_DEFAULT */
else
/* CFS_DEFAULT */
...
@@ -283,8 +285,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
...
@@ -283,8 +285,7 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
}
}
}
}
SetWindowPos
(
hwnd
,
HWND_TOPMOST
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
new_rect
=
rect
;
rect
.
bottom
-
rect
.
top
,
SWP_NOACTIVATE
);
TextOutW
(
hdc
,
offset
.
x
,
offset
.
y
,
str
,
len
);
TextOutW
(
hdc
,
offset
.
x
,
offset
.
y
,
str
,
len
);
if
(
font
)
SelectObject
(
hdc
,
font
);
if
(
font
)
SelectObject
(
hdc
,
font
);
...
@@ -293,6 +294,10 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
...
@@ -293,6 +294,10 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
EndPaint
(
hwnd
,
&
ps
);
EndPaint
(
hwnd
,
&
ps
);
ImmUnlockIMC
(
himc
);
ImmUnlockIMC
(
himc
);
if
(
!
EqualRect
(
&
rect
,
&
new_rect
))
SetWindowPos
(
hwnd
,
HWND_TOPMOST
,
new_rect
.
left
,
new_rect
.
top
,
new_rect
.
right
-
new_rect
.
left
,
new_rect
.
bottom
-
new_rect
.
top
,
SWP_NOACTIVATE
);
}
}
static
void
ime_ui_update_window
(
INPUTCONTEXT
*
ctx
,
HWND
hwnd
)
static
void
ime_ui_update_window
(
INPUTCONTEXT
*
ctx
,
HWND
hwnd
)
...
...
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