backend/wayland: rename wl_seat.c to seat.c

I never got why we have a wl_ prefix here.
This commit is contained in:
Simon Ser 2020-03-02 17:07:53 +01:00 committed by Drew DeVault
parent c9859f187f
commit 613f9c6f8d
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
wlr_files += files( wlr_files += files(
'backend.c', 'backend.c',
'output.c', 'output.c',
'wl_seat.c', 'seat.c',
'tablet_v2.c', 'tablet_v2.c',
) )

View File

@ -566,7 +566,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
assert(backend->seat == wl_seat); assert(backend->seat == wl_seat);
if ((caps & WL_SEAT_CAPABILITY_POINTER)) { if ((caps & WL_SEAT_CAPABILITY_POINTER)) {
wlr_log(WLR_DEBUG, "seat %p offered pointer", (void*) wl_seat); wlr_log(WLR_DEBUG, "seat %p offered pointer", (void *)wl_seat);
struct wl_pointer *wl_pointer = wl_seat_get_pointer(wl_seat); struct wl_pointer *wl_pointer = wl_seat_get_pointer(wl_seat);
backend->pointer = wl_pointer; backend->pointer = wl_pointer;
@ -579,7 +579,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
wl_pointer_add_listener(wl_pointer, &pointer_listener, backend); wl_pointer_add_listener(wl_pointer, &pointer_listener, backend);
} }
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD)) { if ((caps & WL_SEAT_CAPABILITY_KEYBOARD)) {
wlr_log(WLR_DEBUG, "seat %p offered keyboard", (void*) wl_seat); wlr_log(WLR_DEBUG, "seat %p offered keyboard", (void *)wl_seat);
struct wl_keyboard *wl_keyboard = wl_seat_get_keyboard(wl_seat); struct wl_keyboard *wl_keyboard = wl_seat_get_keyboard(wl_seat);
backend->keyboard = wl_keyboard; backend->keyboard = wl_keyboard;