aboutsummaryrefslogtreecommitdiff
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-19 14:00:03 +0200
committerGitHub <noreply@github.com>2018-10-19 14:00:03 +0200
commit96e3686ae882818edc35a14c207dfd97c40366d9 (patch)
tree2b898904e8c1e43417bfa92568bff23545ff642d /sway/input/input-manager.c
parent19adc3ff2dc262ade0bc1a87895e49696224d5d0 (diff)
parent2e637b7368de565a85f77fbd03408f33b763dd7b (diff)
downloadsway-96e3686ae882818edc35a14c207dfd97c40366d9.tar.xz
Merge pull request #2875 from RedSoxFan/input-device-bindings
cmd_bind{sym,code}: Implement per-device bindings
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 70c2abf7..671f9a47 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -45,7 +45,7 @@ struct sway_seat *input_manager_get_seat(
return seat_create(input, seat_name);
}
-static char *get_device_identifier(struct wlr_input_device *device) {
+char *input_device_get_identifier(struct wlr_input_device *device) {
int vendor = device->vendor;
int product = device->product;
char *name = strdup(device->name);
@@ -278,7 +278,7 @@ static void handle_new_input(struct wl_listener *listener, void *data) {
device->data = input_device;
input_device->wlr_device = device;
- input_device->identifier = get_device_identifier(device);
+ input_device->identifier = input_device_get_identifier(device);
wl_list_insert(&input->devices, &input_device->link);
wlr_log(WLR_DEBUG, "adding device: '%s'",
@@ -375,7 +375,7 @@ void handle_virtual_keyboard(struct wl_listener *listener, void *data) {
device->data = input_device;
input_device->wlr_device = device;
- input_device->identifier = get_device_identifier(device);
+ input_device->identifier = input_device_get_identifier(device);
wl_list_insert(&input_manager->devices, &input_device->link);
wlr_log(WLR_DEBUG, "adding virtual keyboard: '%s'",