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
a5e92410
Commit
a5e92410
authored
Oct 19, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: WM_RBUTTONDOWN lParam is in client coordinates not window coordinates.
parent
bf42a341
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
user.c
programs/wineconsole/user.c
+5
-3
No files found.
programs/wineconsole/user.c
View file @
a5e92410
...
...
@@ -1175,12 +1175,14 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
case
WM_RBUTTONDOWN
:
if
((
wParam
&
(
MK_CONTROL
|
MK_SHIFT
))
==
data
->
curcfg
.
menu_mask
)
{
RECT
r
;
POINT
pt
;
GetWindowRect
(
hWnd
,
&
r
);
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
ClientToScreen
(
hWnd
,
&
pt
);
WCUSER_SetMenuDetails
(
data
,
PRIVATE
(
data
)
->
hPopMenu
);
TrackPopupMenu
(
PRIVATE
(
data
)
->
hPopMenu
,
TPM_LEFTALIGN
|
TPM_TOPALIGN
,
r
.
left
+
LOWORD
(
lParam
),
r
.
top
+
HIWORD
(
lParam
)
,
0
,
hWnd
,
NULL
);
pt
.
x
,
pt
.
y
,
0
,
hWnd
,
NULL
);
}
else
{
...
...
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