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
98128a65
Commit
98128a65
authored
Jul 29, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use GetClientRect in EDIT_WM_ContextMenu.
parent
c0b62eb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
edit.c
dlls/user32/edit.c
+8
-3
No files found.
dlls/user32/edit.c
View file @
98128a65
...
...
@@ -3328,11 +3328,16 @@ static void EDIT_WM_ContextMenu(EDITSTATE *es, INT x, INT y)
if
(
x
==
-
1
&&
y
==
-
1
)
/* passed via VK_APPS press/release */
{
POINT
pt
;
RECT
rc
;
/* Windows places the menu at the edit's center in this case */
WIN_GetRectangles
(
es
->
hwndSelf
,
COORDS_SCREEN
,
NULL
,
&
rc
);
x
=
rc
.
left
+
(
rc
.
right
-
rc
.
left
)
/
2
;
y
=
rc
.
top
+
(
rc
.
bottom
-
rc
.
top
)
/
2
;
GetClientRect
(
es
->
hwndSelf
,
&
rc
);
pt
.
x
=
rc
.
right
/
2
;
pt
.
y
=
rc
.
bottom
/
2
;
ClientToScreen
(
es
->
hwndSelf
,
&
pt
);
x
=
pt
.
x
;
y
=
pt
.
y
;
}
if
(
!
(
es
->
flags
&
EF_FOCUSED
))
...
...
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