[vlc-commits] macosx: fixed media key support on OS X 10.6+

Felix Paul Kühne git at videolan.org
Mon Apr 25 14:06:07 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 25 14:05:58 2011 +0200| [f83ba04495d1a81e4309ca5c04a3b5c2f7ea464f] | committer: Felix Paul Kühne

macosx: fixed media key support on OS X 10.6+

Note that this rework changes the current behavior: if VLC is in the background, the keys still control it, however if you start another key user (such as iTunes, QTP, etc.), it won't interfere and control the other app. That's why macosx-mediakeys-background was removed.

Thanks to Spotify for releasing their code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f83ba04495d1a81e4309ca5c04a3b5c2f7ea464f
---

 .../English.lproj/Preferences.nib/designable.nib   |   91 +-----
 .../English.lproj/Preferences.nib/keyedobjects.nib |  Bin 107838 -> 107231 bytes
 .../package/macosx/vlc.xcodeproj/project.pbxproj   |    9 +
 modules/gui/macosx/Modules.am                      |    4 +
 modules/gui/macosx/SPInvocationGrabbing.h          |   41 +++
 modules/gui/macosx/SPInvocationGrabbing.m          |  138 +++++++++
 modules/gui/macosx/SPMediaKeyTap.h                 |   46 +++
 modules/gui/macosx/SPMediaKeyTap.m                 |  309 ++++++++++++++++++++
 modules/gui/macosx/controls.h                      |    4 +-
 modules/gui/macosx/intf.h                          |   22 +-
 modules/gui/macosx/intf.m                          |  159 +++++------
 modules/gui/macosx/macosx.m                        |    9 +-
 modules/gui/macosx/misc.m                          |    6 +-
 modules/gui/macosx/simple_prefs.h                  |    3 +-
 modules/gui/macosx/simple_prefs.m                  |    8 +-
 15 files changed, 648 insertions(+), 201 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=f83ba04495d1a81e4309ca5c04a3b5c2f7ea464f


More information about the vlc-commits mailing list