aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-19 10:07:00 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-01-26 15:06:45 +0000
commit12e04d8f83a7359c8c4b7c3c9aa12c370c9e7800 (patch)
tree86d315d84b05df172720955e38d272e821c78b14
parentf41dcb3a97401d28e7da5c56a93c9a3409813947 (diff)
seat/keyboard: constify wlr_seat_keyboard_send_modifiers()
-rw-r--r--include/wlr/types/wlr_seat.h2
-rw-r--r--types/seat/wlr_seat_keyboard.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index d1984449..fb44074f 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -510,7 +510,7 @@ void wlr_seat_keyboard_send_key(struct wlr_seat *seat, uint32_t time_msec,
* wlr_seat_keyboard_notify_modifiers() instead.
*/
void wlr_seat_keyboard_send_modifiers(struct wlr_seat *seat,
- struct wlr_keyboard_modifiers *modifiers);
+ const struct wlr_keyboard_modifiers *modifiers);
/**
* Send a keyboard enter event to the given surface and consider it to be the
diff --git a/types/seat/wlr_seat_keyboard.c b/types/seat/wlr_seat_keyboard.c
index 95d9f637..7fc94a5e 100644
--- a/types/seat/wlr_seat_keyboard.c
+++ b/types/seat/wlr_seat_keyboard.c
@@ -192,7 +192,7 @@ static void seat_keyboard_handle_surface_destroy(struct wl_listener *listener,
}
void wlr_seat_keyboard_send_modifiers(struct wlr_seat *seat,
- struct wlr_keyboard_modifiers *modifiers) {
+ const struct wlr_keyboard_modifiers *modifiers) {
struct wlr_seat_client *client = seat->keyboard_state.focused_client;
if (client == NULL) {
return;