Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sway for openSUSE:Factory checked in 
at 2023-04-14 13:14:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sway (Old)
 and      /work/SRC/openSUSE:Factory/.sway.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sway"

Fri Apr 14 13:14:14 2023 rev:38 rq:1079406 version:1.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/sway/sway.changes        2023-02-13 
16:43:13.932192977 +0100
+++ /work/SRC/openSUSE:Factory/.sway.new.19717/sway.changes     2023-04-14 
13:14:18.267984650 +0200
@@ -1,0 +2,6 @@
+Tue Apr 11 20:31:02 UTC 2023 - Bjørn Lie <[email protected]>
+
+- Add dee032d0a0ecd958c902b88302dc59703d703c7f.patch: ipc: add
+  LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry.
+
+-------------------------------------------------------------------

New:
----
  dee032d0a0ecd958c902b88302dc59703d703c7f.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sway.spec ++++++
--- /var/tmp/diff_new_pack.zzSSU7/_old  2023-04-14 13:14:18.759987463 +0200
+++ /var/tmp/diff_new_pack.zzSSU7/_new  2023-04-14 13:14:18.763987486 +0200
@@ -26,6 +26,9 @@
 Source0:        
https://github.com/swaywm/sway/releases/download/%{version}/%{name}-%{version}.tar.gz
 Source1:        
https://github.com/swaywm/sway/releases/download/%{version}/%{name}-%{version}.tar.gz.sig
 Source2:        
https://emersion.fr/.well-known/openpgpkey/hu/dj3498u4hyyarh35rkjfnghbjxug6b19#/%{name}.keyring
+# PATCH-FIX-UPSTREAM dee032d0a0ecd958c902b88302dc59703d703c7f.patch -- ipc: 
add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry
+Patch0:         
https://github.com/swaywm/sway/commit/dee032d0a0ecd958c902b88302dc59703d703c7f.patch
+
 BuildRequires:  gcc-c++
 #BuildRequires:  libxslt-tools
 BuildRequires:  libevdev-devel

++++++ dee032d0a0ecd958c902b88302dc59703d703c7f.patch ++++++
>From dee032d0a0ecd958c902b88302dc59703d703c7f Mon Sep 17 00:00:00 2001
From: Simon Ser <[email protected]>
Date: Sun, 26 Mar 2023 23:27:40 +0200
Subject: [PATCH] ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry

This was introduced in the last libinput release.

Fixes the following error:

    ../sway/ipc-json.c:928:17: error: enumeration value 
'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM' not handled in switch [-Werror=switch]
      928 |                 switch 
(libinput_device_config_accel_get_profile(device)) {
          |                 ^~~~~~
---
 meson.build     | 5 +++++
 sway/ipc-json.c | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/meson.build b/meson.build
index 84e7c6c56f..d1fbfa38ab 100644
--- a/meson.build
+++ b/meson.build
@@ -117,6 +117,11 @@ conf_data.set10('HAVE_LIBSYSTEMD', sdbus.found() and 
sdbus.name() == 'libsystemd
 conf_data.set10('HAVE_LIBELOGIND', sdbus.found() and sdbus.name() == 
'libelogind')
 conf_data.set10('HAVE_BASU', sdbus.found() and sdbus.name() == 'basu')
 conf_data.set10('HAVE_TRAY', have_tray)
+conf_data.set10('HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM', 
cc.has_header_symbol(
+       'libinput.h',
+       'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM',
+       dependencies: libinput,
+))
 
 scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: 
get_option('man-pages'))
 if scdoc.found()
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 51e6a99518..c7cbea0136 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -935,6 +935,11 @@ static json_object *describe_libinput_device(struct 
libinput_device *device) {
                case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE:
                        accel_profile = "adaptive";
                        break;
+#if HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM
+               case LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM:
+                       accel_profile = "custom";
+                       break;
+#endif
                }
                json_object_object_add(object, "accel_profile",
                                json_object_new_string(accel_profile));

Reply via email to