From: Christophe Mutricy Date: Wed, 7 Feb 2007 20:00:55 +0000 (+0000) Subject: Add media key to X11 vouts. Patch by loox.thefuture X-Git-Tag: 0.9.0-test0~8689 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3ab9ffb0d03946fb8607136f933cf5875a712355;p=vlc Add media key to X11 vouts. Patch by loox.thefuture --- diff --git a/THANKS b/THANKS index 84210d80ab..c8b90c442a 100644 --- a/THANKS +++ b/THANKS @@ -103,6 +103,7 @@ K. Staring - RTSP rewind and fast-forward support Laurent Jonqueres - Occitan localization Laurent Mutricy - HTTP interface fixes Leo Spalteholz - Qt interface design +Loox Thefuture - Media key in X11 vout Lorena Gomes - Catalan translation Mahrazi Mohd Kamal - Malay Translation Marc Nolette - PVR support in DirectShow input diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c index 4644dbf8e5..ef9fc2b9b0 100644 --- a/modules/video_output/x11/xcommon.c +++ b/modules/video_output/x11/xcommon.c @@ -57,6 +57,7 @@ #include #include #include +#include #ifdef HAVE_SYS_SHM_H # include #endif @@ -3048,6 +3049,13 @@ static struct { XK_Insert, KEY_INSERT }, { XK_Delete, KEY_DELETE }, + { XF86XK_AudioNext, KEY_MEDIA_NEXT_TRACK}, + { XF86XK_AudioPrev, KEY_MEDIA_PREV_TRACK}, + { XF86XK_AudioMute, KEY_VOLUME_MUTE }, + { XF86XK_AudioLowerVolume, KEY_VOLUME_DOWN }, + { XF86XK_AudioRaiseVolume, KEY_VOLUME_UP }, + { XF86XK_AudioPlay, KEY_MEDIA_PLAY_PAUSE }, + { XF86XK_AudioPause, KEY_MEDIA_PLAY_PAUSE }, { 0, 0 } };