Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eb857aeb
Commit
eb857aeb
authored
Apr 10, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Moved the menu activation hack on managed windows to the X11 driver.
parent
fa677c7f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
menu.c
dlls/user32/menu.c
+1
-7
winpos.c
dlls/winex11.drv/winpos.c
+9
-0
No files found.
dlls/user32/menu.c
View file @
eb857aeb
...
...
@@ -3365,13 +3365,7 @@ void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, WCHAR wChar)
MENU_SelectItem
(
hwnd
,
hTrackMenu
,
uItem
,
TRUE
,
0
);
if
(
wParam
&
HTSYSMENU
&&
wChar
!=
' '
)
{
/* prevent sysmenu activation for managed windows on Alt down/up */
if
(
GetPropA
(
hwnd
,
"__wine_x11_managed"
))
wFlags
|=
TF_ENDMENU
;
/* schedule end of menu tracking */
}
else
if
(
!
(
wParam
&
HTSYSMENU
)
||
wChar
==
' '
)
{
if
(
uItem
==
NO_SELECTED_ITEM
)
MENU_MoveSelection
(
hwnd
,
hTrackMenu
,
ITEM_NEXT
);
...
...
dlls/winex11.drv/winpos.c
View file @
eb857aeb
...
...
@@ -752,6 +752,15 @@ LRESULT X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam )
}
break
;
case
SC_KEYMENU
:
/* prevent a simple ALT press+release from activating the system menu,
* as that can get confusing on managed windows */
if
((
WCHAR
)
lparam
)
return
-
1
;
/* got an explicit char */
if
(
GetMenu
(
hwnd
))
return
-
1
;
/* window has a real menu */
if
(
!
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_SYSMENU
))
return
-
1
;
/* no system menu */
TRACE
(
"ignoring SC_KEYMENU wp %lx lp %lx
\n
"
,
wparam
,
lparam
);
return
0
;
default:
return
-
1
;
}
...
...
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