From 989704d77ac83ce64af479743f234212537686ff Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 18 Jul 2021 21:23:12 +0300 Subject: [PATCH] sway-tiny: potential fix for media keys --- wayland/sway-tiny/checksums | 2 +- wayland/sway-tiny/patches/no-evdev.patch | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wayland/sway-tiny/checksums b/wayland/sway-tiny/checksums index d08e5446..9d5124ce 100644 --- a/wayland/sway-tiny/checksums +++ b/wayland/sway-tiny/checksums @@ -1,4 +1,4 @@ 14cdfb9f92d10368883a7812422f0724cd415877e47b3830064e77773277be4e 75700927a0cf4ce38a40b270dac9adecdde3ad52763175160a7ff9be54421b6f 45de0d0b7135d4c11cd9a2e8ddf8c0f179ecfb45987d205e35711e1a0a432a99 -f4ba997506cb10b72a54cea8ee6eb568e80b7fc76addb4a3520d028df7994559 +626b339087dfef740b8146b95ad488a6b311e3be1c40ca4f4e80e502c77de735 diff --git a/wayland/sway-tiny/patches/no-evdev.patch b/wayland/sway-tiny/patches/no-evdev.patch index bc2bb697..c6bcf730 100644 --- a/wayland/sway-tiny/patches/no-evdev.patch +++ b/wayland/sway-tiny/patches/no-evdev.patch @@ -16,7 +16,7 @@ index b4b5bc45..27703128 100644 +++ b/sway/commands/bar/bind.c @@ -1,4 +1,4 @@ -#include -+#include ++#include #include #include #include @@ -36,7 +36,7 @@ index 6b331419..039f5335 100644 +++ b/sway/commands/input/scroll_button.c @@ -1,4 +1,4 @@ -#include -+#include ++#include #include "sway/config.h" #include "sway/commands.h" #include "sway/input/cursor.h" @@ -73,7 +73,7 @@ index 95edf7be..99df15f9 100644 code, event ? event : "(null)") + 1; @@ -1251,7 +1251,7 @@ uint32_t get_mouse_button(const char *name, char **error) { } - + const char *get_mouse_button_name(uint32_t button) { - const char *name = libevdev_event_code_get_name(EV_KEY, button); + const char *name = libinput_event_code_get_name(EV_KEY, button); @@ -88,7 +88,7 @@ index f9eb8c8a..681ca263 100644 #define _POSIX_C_SOURCE 200809L #include -#include -+#include ++#include #include #include #include @@ -101,7 +101,7 @@ index 2c0cf3e2..839e6ae0 100644 #include #endif -#include -+#include ++#include #include #include #include @@ -110,7 +110,7 @@ index 4b1894ad..b1529156 100644 --- a/sway/meson.build +++ b/sway/meson.build @@ -205,7 +205,6 @@ sway_sources = files( - + sway_deps = [ drm, - libevdev,