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
022e4b82
Commit
022e4b82
authored
Jun 05, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Jun 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: End the tracking on a system menu double-click.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d10b5ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
menu.c
dlls/user32/menu.c
+6
-3
No files found.
dlls/user32/menu.c
View file @
022e4b82
...
...
@@ -2575,7 +2575,7 @@ static void MENU_SwitchTracking( MTRACKER* pmt, HMENU hPtMenu, UINT id, UINT wFl
*
* Return TRUE if we can go on with menu tracking.
*/
static
BOOL
MENU_ButtonDown
(
MTRACKER
*
pmt
,
HMENU
hPtMenu
,
UINT
wFlags
)
static
BOOL
MENU_ButtonDown
(
MTRACKER
*
pmt
,
UINT
message
,
HMENU
hPtMenu
,
UINT
wFlags
)
{
TRACE
(
"%p hPtMenu=%p
\n
"
,
pmt
,
hPtMenu
);
...
...
@@ -2586,7 +2586,10 @@ static BOOL MENU_ButtonDown( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags )
enum
hittest
ht
=
ht_item
;
if
(
IS_SYSTEM_MENU
(
ptmenu
)
)
{
if
(
message
==
WM_LBUTTONDBLCLK
)
return
FALSE
;
pos
=
0
;
}
else
ht
=
MENU_FindItemByCoords
(
ptmenu
,
pmt
->
pt
,
&
pos
);
...
...
@@ -3045,7 +3048,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
if
(
wFlags
&
TPM_BUTTONDOWN
)
{
/* Get the result in order to start the tracking or not */
fRemove
=
MENU_ButtonDown
(
&
mt
,
hmenu
,
wFlags
);
fRemove
=
MENU_ButtonDown
(
&
mt
,
WM_LBUTTONDOWN
,
hmenu
,
wFlags
);
fEndMenu
=
!
fRemove
;
}
...
...
@@ -3131,7 +3134,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
case
WM_LBUTTONDOWN
:
/* If the message belongs to the menu, removes it from the queue */
/* Else, end menu tracking */
fRemove
=
MENU_ButtonDown
(
&
mt
,
hmenu
,
wFlags
);
fRemove
=
MENU_ButtonDown
(
&
mt
,
msg
.
message
,
hmenu
,
wFlags
);
fEndMenu
=
!
fRemove
;
break
;
...
...
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