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
635544e2
Commit
635544e2
authored
Mar 24, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make sure we set menu capture to a window that is visible.
parent
78de7e36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
menu.c
dlls/user32/menu.c
+4
-1
No files found.
dlls/user32/menu.c
View file @
635544e2
...
...
@@ -2963,6 +2963,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
INT
executedMenuId
=
-
1
;
MTRACKER
mt
;
BOOL
enterIdleSent
=
FALSE
;
HWND
capture_win
;
mt
.
trackFlags
=
0
;
mt
.
hCurrentMenu
=
hmenu
;
...
...
@@ -2991,7 +2992,9 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
if
(
wFlags
&
TF_ENDMENU
)
fEndMenu
=
TRUE
;
set_capture_window
(
mt
.
hOwnerWnd
,
GUI_INMENUMODE
,
NULL
);
/* owner may not be visible when tracking a popup, so use the menu itself */
capture_win
=
(
wFlags
&
TPM_POPUPMENU
)
?
menu
->
hWnd
:
mt
.
hOwnerWnd
;
set_capture_window
(
capture_win
,
GUI_INMENUMODE
,
NULL
);
while
(
!
fEndMenu
)
{
...
...
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