[PATCH 1/2] winemac: Implement support for global hot keys. (try 3)

Ken Thomases ken at codeweavers.com
Wed Sep 25 17:10:37 CDT 2013


Partially based on a patch for winex11 previously submitted by Vincent Povirk.

try 3:
* use vkey,mod_flags to look up hot keys rather than hwnd,id; doesn't require change in driver entry point
* RegisterHotKey entry point doesn't replace hot key, since user32 will call UnregisterHotKey
* No need to send Mac modifiers in HOTKEY_PRESS event since we have mod_flags
* Remove tracing from update_modifier_state() and macdrv_hotkey_press() which is redundant with that done by macdrv_send_keyboard_input()
---
dlls/winemac.drv/cocoa_event.h    |    3 +
dlls/winemac.drv/cocoa_event.m    |  167 ++++++++++++++++++++++++++++++++++++
dlls/winemac.drv/event.c          |    7 ++
dlls/winemac.drv/keyboard.c       |  171 +++++++++++++++++++++++++++++++++++++
dlls/winemac.drv/macdrv.h         |    1 +
dlls/winemac.drv/macdrv_cocoa.h   |   16 ++++
dlls/winemac.drv/winemac.drv.spec |    2 +
7 files changed, 367 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Implement-support-for-global-hot-keys.-try-3.patch
Type: text/x-patch
Size: 21254 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130925/f7857d26/attachment.bin>


More information about the wine-patches mailing list