sway: potential fix for media keys

This commit is contained in:
Dylan Araps 2021-07-18 21:20:52 +03:00
parent 169ad17997
commit efbe6b8997
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
3 changed files with 7 additions and 7 deletions

View File

@ -1,2 +1,2 @@
8b138867cd83217de07138144b1279fe58e0421eb10c91122aa33c8770fe7391
5f56cedc5a9ba028254631242d0ebf1916e56bd6ccffd3247a1878004dfb12ea
a41a469d43e58c3c877c72750c6564deb8e6384e2b42080d17e9ec74622a5e42

View File

@ -16,7 +16,7 @@ index b4b5bc4..2770312 100644
+++ b/sway/commands/bar/bind.c
@@ -1,4 +1,4 @@
-#include <libevdev/libevdev.h>
+#include <linux/input-event-codes.h>
+#include <linux/input.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
@ -36,7 +36,7 @@ index 6b33141..039f533 100644
+++ b/sway/commands/input/scroll_button.c
@@ -1,4 +1,4 @@
-#include <libevdev/libevdev.h>
+#include <linux/input-event-codes.h>
+#include <linux/input.h>
#include "sway/config.h"
#include "sway/commands.h"
#include "sway/input/cursor.h"
@ -73,7 +73,7 @@ index c89d516..e1bbabd 100644
code, event ? event : "(null)") + 1;
@@ -1252,7 +1252,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 f9eb8c8..681ca26 100644
#define _POSIX_C_SOURCE 200809L
#include <float.h>
-#include <libevdev/libevdev.h>
+#include <linux/input-event-codes.h>
+#include <linux/input.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_tablet_v2.h>
#include <wlr/types/wlr_xcursor_manager.h>
@ -99,7 +99,7 @@ index 2c4c52a..1c09ba4 100644
@@ -1,5 +1,5 @@
#include <json.h>
-#include <libevdev/libevdev.h>
+#include <linux/input-event-codes.h>
+#include <linux/input.h>
#include <stdio.h>
#include <ctype.h>
#include "config.h"

View File

@ -1 +1 @@
1.6.1 1
1.6.1 2