From c20ecc792d73fca7d7fdf13cc97e0b87f81530e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 19 Oct 2007 19:26:16 +0000 Subject: [PATCH] - Add patch from upstream to add keysyms for brightness buttons (#330491). --- brightness-keysyms.patch | 22 ++++++++++++++++++++++ libX11.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 brightness-keysyms.patch diff --git a/brightness-keysyms.patch b/brightness-keysyms.patch new file mode 100644 index 0000000..4c2392d --- /dev/null +++ b/brightness-keysyms.patch @@ -0,0 +1,22 @@ +commit 7c996f78914c77fe17e9f4feede980d895d9df51 +Author: Eric Anholt +Date: Tue Aug 28 15:15:11 2007 -0700 + + Add XF86 keyboard/monitor brightness keysyms to the keysymbdb. + +diff --git a/src/XKeysymDB b/src/XKeysymDB +index f146950..5390444 100644 +--- a/src/XKeysymDB ++++ b/src/XKeysymDB +@@ -199,6 +199,11 @@ XeroxPointerButton5 :10070005 + + ! The definitions here should match + XF86ModeLock :1008FF01 ++XF86MonBrightnessUp :1008FF02 ++XF86MonBrightnessDown :1008FF03 ++XF86KbdLightOnOff :1008FF04 ++XF86KbdBrightnessUp :1008FF05 ++XF86KbdBrightnessDown :1008FF06 + XF86Standby :1008FF10 + XF86AudioLowerVolume :1008FF11 + XF86AudioMute :1008FF12 diff --git a/libX11.spec b/libX11.spec index e0719f0..b2cabee 100644 --- a/libX11.spec +++ b/libX11.spec @@ -1,7 +1,7 @@ Summary: X.Org X11 libX11 runtime library Name: libX11 Version: 1.1.3 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT/X11 Group: System Environment/Libraries URL: http://www.x.org @@ -16,6 +16,7 @@ Patch0: libX11-0.99.3-datadir-locale-dir-fix.patch Patch2: dont-forward-keycode-0.patch Patch3: bug-201284.patch Patch4: libX11-1.1.3-xkb-lock-fix.patch +Patch5: brightness-keysyms.patch BuildRequires: pkgconfig # xproto >= 7.0.6 required @@ -58,6 +59,7 @@ X.Org X11 libX11 development package %patch2 -p1 -b .dont-forward-keycode-0 %patch3 -p1 -b .3-bug201284 %patch4 -p1 -b .jx +%patch5 -p1 -b .brightness-keysyms %build %configure \ @@ -247,6 +249,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Fri Oct 19 2007 Kristian Høgsberg - 1.1.3-4 +- Add patch from upstream to add keysyms for brightness buttons (#330491). + * Tue Oct 16 2007 Adam Jackson 1.1.3-3 - libX11-devel Requires: libxcb-devel.