summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-11-16 14:50:52 +0100
committerFurkan Sahin <furkan-dev@proton.me>2023-11-16 14:50:52 +0100
commita3ee6fc0fcd20ae48ff368f6841cfdfad4c12351 (patch)
treef2fc773713f53e939d4b6709ce381781b1f95fa9
parentd193bf9ebe7e7e13860ed4931f9895079acaf4fc (diff)
input/seat: rename seat_apply_input_config
seat_apply_input_mapping is a lot more descriptive.
-rw-r--r--sway/input/seat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 6c0e85bd..bafdbcf3 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -705,12 +705,12 @@ static bool is_touch_or_tablet_tool(struct sway_seat_device *seat_device) {
}
}
-static void seat_apply_input_config(struct sway_seat *seat,
+static void seat_apply_input_mapping(struct sway_seat *seat,
struct sway_seat_device *sway_device) {
struct input_config *ic =
input_device_get_config(sway_device->input_device);
- sway_log(SWAY_DEBUG, "Applying input config to %s",
+ sway_log(SWAY_DEBUG, "Applying input mapping to %s",
sway_device->input_device->identifier);
const char *mapped_to_output = ic == NULL ? NULL : ic->mapped_to_output;
@@ -799,7 +799,7 @@ static void seat_configure_pointer(struct sway_seat *seat,
}
wlr_cursor_attach_input_device(seat->cursor->cursor,
sway_device->input_device->wlr_device);
- seat_apply_input_config(seat, sway_device);
+ seat_apply_input_mapping(seat, sway_device);
wl_event_source_timer_update(
seat->cursor->hide_source, cursor_get_timeout(seat->cursor));
}
@@ -841,7 +841,7 @@ static void seat_configure_touch(struct sway_seat *seat,
struct sway_seat_device *sway_device) {
wlr_cursor_attach_input_device(seat->cursor->cursor,
sway_device->input_device->wlr_device);
- seat_apply_input_config(seat, sway_device);
+ seat_apply_input_mapping(seat, sway_device);
}
static void seat_configure_tablet_tool(struct sway_seat *seat,
@@ -852,7 +852,7 @@ static void seat_configure_tablet_tool(struct sway_seat *seat,
sway_configure_tablet(sway_device->tablet);
wlr_cursor_attach_input_device(seat->cursor->cursor,
sway_device->input_device->wlr_device);
- seat_apply_input_config(seat, sway_device);
+ seat_apply_input_mapping(seat, sway_device);
}
static void seat_configure_tablet_pad(struct sway_seat *seat,