From cda9f45f37ba4a3da06024a9cce014cdc8e76b41 Mon Sep 17 00:00:00 2001 From: wangkerong Date: Fri, 2 Jul 2021 10:44:14 +0800 Subject: [PATCH] solve the issue which dispaly could not resolve keysym XF86FullScreen --- ...ld-not-resolve-keysym-XF86FullScreen.patch | 33 +++++++++++++++++++ xorg-x11-proto-devel.spec | 10 ++++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch diff --git a/backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch b/backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch new file mode 100644 index 0000000..a772922 --- /dev/null +++ b/backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch @@ -0,0 +1,33 @@ +From 15329c5a0d3a5d9a8eddf0bed38c3b62c7fc7965 Mon Sep 17 00:00:00 2001 +From: Sebastian Wick +Date: Thu, 31 Oct 2019 15:17:26 +0100 +Subject: [PATCH] XF86keysym: Add XF86XK_FullScreen + +Add XF86XK_FullScreen keysym, to be used as mapping for evdev's +KEY_FULL_SCREEN. + +Chromebooks have a special media key for toggling full screen mode. + +Signed-off-by: Sebastian Wick + +Refenence: https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/11 + +--- + include/X11/XF86keysym.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/X11/XF86keysym.h b/include/X11/XF86keysym.h +index dd287e2..dab1220 100644 +--- a/include/X11/XF86keysym.h ++++ b/include/X11/XF86keysym.h +@@ -207,6 +207,8 @@ + + #define XF86XK_RotationLockToggle 0x1008FFB7 /* Toggle screen rotation lock on/off */ + ++#define XF86XK_FullScreen 0x1008FFB8 /* Toggle fullscreen */ ++ + /* Keys for special action keys (hot keys) */ + /* Virtual terminals on some operating systems */ + #define XF86XK_Switch_VT_1 0x1008FE01 +-- +GitLab diff --git a/xorg-x11-proto-devel.spec b/xorg-x11-proto-devel.spec index bfb1560..9185c46 100644 --- a/xorg-x11-proto-devel.spec +++ b/xorg-x11-proto-devel.spec @@ -1,11 +1,14 @@ Name: xorg-x11-proto-devel Version: 2019.1 -Release: 1 +Release: 2 License: MIT Summary: X.Org X11 Protocol headers URL: https://www.x.org Source0: https://www.x.org/pub/individual/proto/xorgproto-%{version}.tar.bz2 Source1: make-git-snapshot.sh + +Patch6000: backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch + BuildRequires: autoconf automake libtool pkgconfig xorg-x11-util-macros >= 1.0.2-1 BuildArch: noarch @@ -13,7 +16,7 @@ BuildArch: noarch X.Org X11 Protocol headers %prep -%autosetup -n xorgproto-%{version} +%autosetup -n xorgproto-%{version} -p1 %build autoreconf -fiv @@ -31,6 +34,9 @@ autoreconf -fiv %{_docdir}/* %changelog +* Mon Jul 02 2021 wangkerong 2019.1-2 +- DESC:solve the issue which display could not resolve keysym XF86FullScreen + * Wed Aug 05 2020 chengguipeng 2019.1-1 - Back to 2019.1-1