mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
seat/keyboard: constify args in wlr_seat_keyboard_enter()
This commit is contained in:
parent
12e04d8f83
commit
e44834595d
2 changed files with 5 additions and 5 deletions
|
|
@ -228,8 +228,8 @@ void seat_client_send_keyboard_leave_raw(struct wlr_seat_client *seat_client,
|
|||
}
|
||||
|
||||
void wlr_seat_keyboard_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) {
|
||||
if (seat->keyboard_state.focused_surface == surface) {
|
||||
// this surface already got an enter notify
|
||||
return;
|
||||
|
|
@ -255,7 +255,7 @@ void wlr_seat_keyboard_enter(struct wlr_seat *seat,
|
|||
// enter the current surface
|
||||
if (client != NULL) {
|
||||
struct wl_array keys = {
|
||||
.data = keycodes,
|
||||
.data = (void *)keycodes,
|
||||
.size = num_keycodes * sizeof(keycodes[0]),
|
||||
};
|
||||
uint32_t serial = wlr_seat_client_next_serial(client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue