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
5f06bf80
Commit
5f06bf80
authored
Feb 06, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Feb 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Implement SysCommand() to prevent Alt keypresses from activating system menu.
parent
9f6f8bfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
window.c
dlls/winemac.drv/window.c
+30
-0
winemac.drv.spec
dlls/winemac.drv/winemac.drv.spec
+1
-0
No files found.
dlls/winemac.drv/window.c
View file @
5f06bf80
...
...
@@ -1041,6 +1041,36 @@ done:
/***********************************************************************
* SysCommand (MACDRV.@)
*
* Perform WM_SYSCOMMAND handling.
*/
LRESULT
CDECL
macdrv_SysCommand
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
)
{
struct
macdrv_win_data
*
data
;
LRESULT
ret
=
-
1
;
TRACE
(
"%p, %x, %lx
\n
"
,
hwnd
,
(
unsigned
)
wparam
,
lparam
);
if
(
!
(
data
=
get_win_data
(
hwnd
)))
goto
done
;
if
(
!
data
->
cocoa_window
||
!
data
->
on_screen
)
goto
done
;
/* prevent a simple ALT press+release from activating the system menu,
as that can get confusing */
if
((
wparam
&
0xfff0
)
==
SC_KEYMENU
&&
!
(
WCHAR
)
lparam
&&
!
GetMenu
(
hwnd
)
&&
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_SYSMENU
))
{
TRACE
(
"ignoring SC_KEYMENU wp %lx lp %lx
\n
"
,
wparam
,
lparam
);
ret
=
0
;
}
done:
release_win_data
(
data
);
return
ret
;
}
/***********************************************************************
* UpdateLayeredWindow (MACDRV.@)
*/
BOOL
CDECL
macdrv_UpdateLayeredWindow
(
HWND
hwnd
,
const
UPDATELAYEREDWINDOWINFO
*
info
,
...
...
dlls/winemac.drv/winemac.drv.spec
View file @
5f06bf80
...
...
@@ -24,6 +24,7 @@
@ cdecl SetWindowStyle(ptr long ptr) macdrv_SetWindowStyle
@ cdecl SetWindowText(long wstr) macdrv_SetWindowText
@ cdecl ShowWindow(long long ptr long) macdrv_ShowWindow
@ cdecl SysCommand(long long long) macdrv_SysCommand
@ cdecl ToUnicodeEx(long long ptr ptr long long long) macdrv_ToUnicodeEx
@ cdecl UpdateLayeredWindow(long ptr ptr) macdrv_UpdateLayeredWindow
@ cdecl VkKeyScanEx(long long) macdrv_VkKeyScanEx
...
...
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