chore: Add patch from @antheas for gamescope touch atom

This commit is contained in:
Kyle Gospodnetich 2024-04-06 11:39:14 -07:00
parent f6c9352b81
commit db8dfb484a
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From d98d69ad4238288fa4f79e6563a4cac68cd9c667 Mon Sep 17 00:00:00 2001
From: antheas <git@antheas.dev>
Date: Sun, 31 Mar 2024 21:54:56 +0200
Subject: [PATCH] disable steam touch click atom
Steam sets this atom to 4 (which is the default) in certain games. Then sets it
back to 1 when it exits the game. Setting this atom to 1 makes a cursor appear
and breaks touchscreen functionality. So disable steam from being able to
play with the touch screen.
---
src/steamcompmgr.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp
index 3bd958c..3d9ff74 100644
--- a/src/steamcompmgr.cpp
+++ b/src/steamcompmgr.cpp
@@ -3603,7 +3603,9 @@ handle_property_notify(xwayland_ctx_t *ctx, XPropertyEvent *ev)
}
if (ev->atom == ctx->atoms.steamTouchClickModeAtom )
{
- g_nTouchClickMode = (enum wlserver_touch_click_mode) get_prop(ctx, ctx->root, ctx->atoms.steamTouchClickModeAtom, g_nDefaultTouchClickMode );
+ // When steam changes this to 1 stuff breaks, make it not shoot itself
+ // in the foot
+ // g_nTouchClickMode = (enum wlserver_touch_click_mode) get_prop(ctx, ctx->root, ctx->atoms.steamTouchClickModeAtom, g_nDefaultTouchClickMode );
#if HAVE_OPENVR
if (BIsVRSession())
vrsession_update_touch_mode();
--
2.44.0

View File

@ -16,6 +16,7 @@ Source4: add_720p_var.patch
Source5: touch_gestures_env.patch
Source6: legion_go.patch
Source7: loki.patch
Source8: 0001-disable-steam-touch-click-atom.patch
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build
@ -84,6 +85,7 @@ patch -Np1 < %{SOURCE4}
patch -Np1 < %{SOURCE5}
patch -Np1 < %{SOURCE6}
patch -Np1 < %{SOURCE7}
patch -Np1 < %{SOURCE8}
%build
cd gamescope