File display-key-support.diff of Package kdelibs4

Subject: Add support for the XF86_Display key (Fn+F7)
From: Lubos Lunak
Fate: #4147
Patch-upstream: no (maybe todo)
Relates: libqt4/display-key-support.diff, kdebase4/randr12.diff

Index: kdeui/util/kkeyserver_x11.cpp
===================================================================
--- kdeui/util/kkeyserver_x11.cpp.orig
+++ kdeui/util/kkeyserver_x11.cpp
@@ -240,6 +240,7 @@ static const TransKey g_rgQtToSymX[] =
 #define XF86XK_LaunchD      0x1008FF4D
 #define XF86XK_LaunchE      0x1008FF4E
 #define XF86XK_LaunchF      0x1008FF4F
+#define XF86XK_Display		0x1008FF59   /* Output switch key           */
 // end of XF86keysyms.h
         ,
     { Qt::Key_Standby,    XF86XK_Standby },
@@ -277,6 +278,7 @@ static const TransKey g_rgQtToSymX[] =
     { Qt::Key_LaunchD,    XF86XK_LaunchB },
     { Qt::Key_LaunchE,    XF86XK_LaunchC },
     { Qt::Key_LaunchF,    XF86XK_LaunchD },
+	{ Qt::Key_Display,    XF86XK_Display },
 };
 
 //---------------------------------------------------------------------
openSUSE Build Service is sponsored by