From 6dfc8c236afab5b651158d4d2227367c93edd5f7 Mon Sep 17 00:00:00 2001 From: wangkerong Date: Mon, 28 Jun 2021 10:07:41 +0800 Subject: [PATCH] solve the issue which dispaly could not resolve keysym XF86FullScreen (cherry picked from commit 8d40a3593378d843b3a2cd29221ec7384154fc95) --- ...ld-not-resolve-keysym-XF86FullScreen.patch | 33 +++++++++++++++++++ xorg-x11-proto-devel.spec | 9 +++-- 2 files changed, 40 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 bf03f22..2579764 100644 --- a/xorg-x11-proto-devel.spec +++ b/xorg-x11-proto-devel.spec @@ -1,6 +1,6 @@ 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 @@ -9,11 +9,13 @@ Source1: make-git-snapshot.sh BuildRequires: autoconf automake libtool pkgconfig xorg-x11-util-macros >= 1.0.2-1 BuildArch: noarch +Patch6000: backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch + %description X.Org X11 Protocol headers %prep -%autosetup -n xorgproto-%{version} +%autosetup -n xorgproto-%{version} -p1 %build autoreconf -fiv @@ -31,6 +33,9 @@ autoreconf -fiv %{_docdir}/* %changelog +* Mon Jun 28 2021 wangekrong - 2019.1-2 +- DESC:solve the issue which dispaly could not resolve keysym XF86FullScreen + * Wed Aug 19 2020 zhanzhimin - 2019.1-1 - update to 2019.1-1 -- Gitee