seat/keyboard: constify wlr_seat_keyboard_notify_enter()

This commit is contained in:
Simon Ser 2022-12-19 10:12:25 +01:00 committed by Isaac Freund
parent 695d28c250
commit 0e54b861e9
4 changed files with 12 additions and 12 deletions

View File

@ -110,8 +110,8 @@ struct wlr_seat_keyboard_grab;
struct wlr_keyboard_grab_interface { struct wlr_keyboard_grab_interface {
void (*enter)(struct wlr_seat_keyboard_grab *grab, void (*enter)(struct wlr_seat_keyboard_grab *grab,
struct wlr_surface *surface, uint32_t keycodes[], struct wlr_surface *surface, const uint32_t keycodes[],
size_t num_keycodes, struct wlr_keyboard_modifiers *modifiers); size_t num_keycodes, const struct wlr_keyboard_modifiers *modifiers);
void (*clear_focus)(struct wlr_seat_keyboard_grab *grab); void (*clear_focus)(struct wlr_seat_keyboard_grab *grab);
void (*key)(struct wlr_seat_keyboard_grab *grab, uint32_t time_msec, void (*key)(struct wlr_seat_keyboard_grab *grab, uint32_t time_msec,
uint32_t key, uint32_t state); uint32_t key, uint32_t state);
@ -549,8 +549,8 @@ void wlr_seat_keyboard_notify_modifiers(struct wlr_seat *seat,
* keyboard. * keyboard.
*/ */
void wlr_seat_keyboard_notify_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_surface *surface, const uint32_t keycodes[], size_t num_keycodes,
struct wlr_keyboard_modifiers *modifiers); const struct wlr_keyboard_modifiers *modifiers);
/** /**
* Notify the seat of a keyboard leave event to the currently-focused surface. * Notify the seat of a keyboard leave event to the currently-focused surface.

View File

@ -311,8 +311,8 @@ static const struct wlr_touch_grab_interface
}; };
static void drag_handle_keyboard_enter(struct wlr_seat_keyboard_grab *grab, 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_surface *surface, const uint32_t keycodes[], size_t num_keycodes,
struct wlr_keyboard_modifiers *modifiers) { const struct wlr_keyboard_modifiers *modifiers) {
// nothing has keyboard focus during drags // nothing has keyboard focus during drags
} }

View File

@ -10,8 +10,8 @@
#include "types/wlr_seat.h" #include "types/wlr_seat.h"
static void default_keyboard_enter(struct wlr_seat_keyboard_grab *grab, static void default_keyboard_enter(struct wlr_seat_keyboard_grab *grab,
struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes,
struct wlr_keyboard_modifiers *modifiers) { const struct wlr_keyboard_modifiers *modifiers) {
wlr_seat_keyboard_enter(grab->seat, surface, keycodes, num_keycodes, 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, void wlr_seat_keyboard_notify_enter(struct wlr_seat *seat,
struct wlr_surface *surface, uint32_t keycodes[], size_t num_keycodes, struct wlr_surface *surface, const uint32_t keycodes[], size_t num_keycodes,
struct wlr_keyboard_modifiers *modifiers) { const struct wlr_keyboard_modifiers *modifiers) {
// NULL surfaces are prohibited in the grab-compatible API. Use // NULL surfaces are prohibited in the grab-compatible API. Use
// wlr_seat_keyboard_notify_clear_focus() instead. // wlr_seat_keyboard_notify_clear_focus() instead.
assert(surface); assert(surface);

View File

@ -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, 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_surface *surface, const uint32_t keycodes[], size_t num_keycodes,
struct wlr_keyboard_modifiers *modifiers) { const struct wlr_keyboard_modifiers *modifiers) {
// keyboard focus should remain on the popup // keyboard focus should remain on the popup
} }