diff options
-rw-r--r-- | include/wlr/types/wlr_seat.h | 8 | ||||
-rw-r--r-- | types/data_device/wlr_drag.c | 4 | ||||
-rw-r--r-- | types/seat/wlr_seat_keyboard.c | 8 | ||||
-rw-r--r-- | types/xdg_shell/wlr_xdg_popup.c | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index 2f5fd31b..b94c0435 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -110,8 +110,8 @@ struct wlr_seat_keyboard_grab; struct wlr_keyboard_grab_interface { void (*enter)(struct wlr_seat_keyboard_grab *grab, - struct wlr_surface *surface, uint32_t keycodes[], - size_t num_keycodes, struct wlr_keyboard_modifiers *modifiers); + struct wlr_surface *surface, const uint32_t keycodes[], + size_t num_keycodes, const struct wlr_keyboard_modifiers *modifiers); void (*clear_focus)(struct wlr_seat_keyboard_grab *grab); void (*key)(struct wlr_seat_keyboard_grab *grab, uint32_t time_msec, uint32_t key, uint32_t state); @@ -549,8 +549,8 @@ void wlr_seat_keyboard_notify_modifiers(struct wlr_seat *seat, * keyboard. */ void wlr_seat_keyboard_notify_enter(struct wlr_seat *seat, - struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, - struct wlr_keyboard_modifiers *modifiers); + struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes, + const struct wlr_keyboard_modifiers *modifiers); /** * Notify the seat of a keyboard leave event to the currently-focused surface. diff --git a/types/data_device/wlr_drag.c b/types/data_device/wlr_drag.c index f0b6cfa6..d81972ab 100644 --- a/types/data_device/wlr_drag.c +++ b/types/data_device/wlr_drag.c @@ -311,8 +311,8 @@ static const struct wlr_touch_grab_interface }; static void drag_handle_keyboard_enter(struct wlr_seat_keyboard_grab *grab, - struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, - struct wlr_keyboard_modifiers *modifiers) { + struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes, + const struct wlr_keyboard_modifiers *modifiers) { // nothing has keyboard focus during drags } diff --git a/types/seat/wlr_seat_keyboard.c b/types/seat/wlr_seat_keyboard.c index 65acec33..51456f8b 100644 --- a/types/seat/wlr_seat_keyboard.c +++ b/types/seat/wlr_seat_keyboard.c @@ -10,8 +10,8 @@ #include "types/wlr_seat.h" static void default_keyboard_enter(struct wlr_seat_keyboard_grab *grab, - struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, - struct wlr_keyboard_modifiers *modifiers) { + struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes, + const struct wlr_keyboard_modifiers *modifiers) { wlr_seat_keyboard_enter(grab->seat, surface, keycodes, num_keycodes, modifiers); } @@ -298,8 +298,8 @@ void wlr_seat_keyboard_enter(struct wlr_seat *seat, } void wlr_seat_keyboard_notify_enter(struct wlr_seat *seat, - struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, - struct wlr_keyboard_modifiers *modifiers) { + struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes, + const struct wlr_keyboard_modifiers *modifiers) { // NULL surfaces are prohibited in the grab-compatible API. Use // wlr_seat_keyboard_notify_clear_focus() instead. assert(surface); diff --git a/types/xdg_shell/wlr_xdg_popup.c b/types/xdg_shell/wlr_xdg_popup.c index 4e0fae10..b528c0db 100644 --- a/types/xdg_shell/wlr_xdg_popup.c +++ b/types/xdg_shell/wlr_xdg_popup.c @@ -106,8 +106,8 @@ static const struct wlr_pointer_grab_interface xdg_pointer_grab_impl = { }; static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab, - struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, - struct wlr_keyboard_modifiers *modifiers) { + struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes, + const struct wlr_keyboard_modifiers *modifiers) { // keyboard focus should remain on the popup } |