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
68ca28a8
Commit
68ca28a8
authored
Dec 05, 2016
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Tell MENU_SuspendPopup which message to remove.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c146152
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
menu.c
dlls/user32/menu.c
+7
-7
No files found.
dlls/user32/menu.c
View file @
68ca28a8
...
@@ -2806,7 +2806,7 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk, UINT wFlags )
...
@@ -2806,7 +2806,7 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk, UINT wFlags )
* The idea is not to show the popup if the next input message is
* The idea is not to show the popup if the next input message is
* going to hide it anyway.
* going to hide it anyway.
*/
*/
static
BOOL
MENU_SuspendPopup
(
MTRACKER
*
pmt
,
UINT
16
uMsg
)
static
BOOL
MENU_SuspendPopup
(
MTRACKER
*
pmt
,
UINT
uMsg
)
{
{
MSG
msg
;
MSG
msg
;
...
@@ -2878,7 +2878,7 @@ static BOOL MENU_KeyEscape(MTRACKER* pmt, UINT wFlags)
...
@@ -2878,7 +2878,7 @@ static BOOL MENU_KeyEscape(MTRACKER* pmt, UINT wFlags)
*
*
* Handle a VK_LEFT key event in a menu.
* Handle a VK_LEFT key event in a menu.
*/
*/
static
void
MENU_KeyLeft
(
MTRACKER
*
pmt
,
UINT
wFlags
)
static
void
MENU_KeyLeft
(
MTRACKER
*
pmt
,
UINT
wFlags
,
UINT
msg
)
{
{
POPUPMENU
*
menu
;
POPUPMENU
*
menu
;
HMENU
hmenutmp
,
hmenuprev
;
HMENU
hmenutmp
,
hmenuprev
;
...
@@ -2918,7 +2918,7 @@ static void MENU_KeyLeft( MTRACKER* pmt, UINT wFlags )
...
@@ -2918,7 +2918,7 @@ static void MENU_KeyLeft( MTRACKER* pmt, UINT wFlags )
/* A sublevel menu was displayed - display the next one
/* A sublevel menu was displayed - display the next one
* unless there is another displacement coming up */
* unless there is another displacement coming up */
if
(
!
MENU_SuspendPopup
(
pmt
,
WM_KEYDOWN
)
)
if
(
!
MENU_SuspendPopup
(
pmt
,
msg
)
)
pmt
->
hCurrentMenu
=
MENU_ShowSubPopup
(
pmt
->
hOwnerWnd
,
pmt
->
hCurrentMenu
=
MENU_ShowSubPopup
(
pmt
->
hOwnerWnd
,
pmt
->
hTopMenu
,
TRUE
,
wFlags
);
pmt
->
hTopMenu
,
TRUE
,
wFlags
);
}
}
...
@@ -2931,7 +2931,7 @@ static void MENU_KeyLeft( MTRACKER* pmt, UINT wFlags )
...
@@ -2931,7 +2931,7 @@ static void MENU_KeyLeft( MTRACKER* pmt, UINT wFlags )
*
*
* Handle a VK_RIGHT key event in a menu.
* Handle a VK_RIGHT key event in a menu.
*/
*/
static
void
MENU_KeyRight
(
MTRACKER
*
pmt
,
UINT
wFlags
)
static
void
MENU_KeyRight
(
MTRACKER
*
pmt
,
UINT
wFlags
,
UINT
msg
)
{
{
HMENU
hmenutmp
;
HMENU
hmenutmp
;
POPUPMENU
*
menu
=
MENU_GetMenu
(
pmt
->
hTopMenu
);
POPUPMENU
*
menu
=
MENU_GetMenu
(
pmt
->
hTopMenu
);
...
@@ -2975,7 +2975,7 @@ static void MENU_KeyRight( MTRACKER* pmt, UINT wFlags )
...
@@ -2975,7 +2975,7 @@ static void MENU_KeyRight( MTRACKER* pmt, UINT wFlags )
MENU_MoveSelection
(
pmt
->
hOwnerWnd
,
pmt
->
hTopMenu
,
ITEM_NEXT
);
MENU_MoveSelection
(
pmt
->
hOwnerWnd
,
pmt
->
hTopMenu
,
ITEM_NEXT
);
if
(
hmenutmp
||
pmt
->
trackFlags
&
TF_SUSPENDPOPUP
)
if
(
hmenutmp
||
pmt
->
trackFlags
&
TF_SUSPENDPOPUP
)
if
(
!
MENU_SuspendPopup
(
pmt
,
WM_KEYDOWN
)
)
if
(
!
MENU_SuspendPopup
(
pmt
,
msg
)
)
pmt
->
hCurrentMenu
=
MENU_ShowSubPopup
(
pmt
->
hOwnerWnd
,
pmt
->
hCurrentMenu
=
MENU_ShowSubPopup
(
pmt
->
hOwnerWnd
,
pmt
->
hTopMenu
,
TRUE
,
wFlags
);
pmt
->
hTopMenu
,
TRUE
,
wFlags
);
}
}
...
@@ -3178,11 +3178,11 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
...
@@ -3178,11 +3178,11 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
break
;
break
;
case
VK_LEFT
:
case
VK_LEFT
:
MENU_KeyLeft
(
&
mt
,
wFlags
);
MENU_KeyLeft
(
&
mt
,
wFlags
,
msg
.
message
);
break
;
break
;
case
VK_RIGHT
:
case
VK_RIGHT
:
MENU_KeyRight
(
&
mt
,
wFlags
);
MENU_KeyRight
(
&
mt
,
wFlags
,
msg
.
message
);
break
;
break
;
case
VK_ESCAPE
:
case
VK_ESCAPE
:
...
...
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