mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
wlr_seat: formatting cleanup
This commit is contained in:
parent
ec1e6fe568
commit
aeaa983631
2 changed files with 11 additions and 8 deletions
|
@ -54,7 +54,8 @@ struct wlr_seat_handle *wlr_seat_handle_for_client(struct wlr_seat *wlr_seat,
|
||||||
* Updates the capabilities available on this seat.
|
* Updates the capabilities available on this seat.
|
||||||
* Will automatically send them to all clients.
|
* Will automatically send them to all clients.
|
||||||
*/
|
*/
|
||||||
void wlr_seat_set_capabilities(struct wlr_seat *wlr_seat, uint32_t capabilities);
|
void wlr_seat_set_capabilities(struct wlr_seat *wlr_seat,
|
||||||
|
uint32_t capabilities);
|
||||||
/**
|
/**
|
||||||
* Updates the name of this seat.
|
* Updates the name of this seat.
|
||||||
* Will automatically send it to all clients.
|
* Will automatically send it to all clients.
|
||||||
|
|
|
@ -12,11 +12,11 @@ static void resource_destroy(struct wl_client *client,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wl_pointer_set_cursor(struct wl_client *client,
|
static void wl_pointer_set_cursor(struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
uint32_t serial,
|
uint32_t serial,
|
||||||
struct wl_resource *surface,
|
struct wl_resource *surface,
|
||||||
int32_t hotspot_x,
|
int32_t hotspot_x,
|
||||||
int32_t hotspot_y) {
|
int32_t hotspot_y) {
|
||||||
wlr_log(L_DEBUG, "TODO: wl_pointer_set_cursor");
|
wlr_log(L_DEBUG, "TODO: wl_pointer_set_cursor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,8 @@ static void wl_seat_bind(struct wl_client *wl_client, void *_wlr_seat,
|
||||||
struct wlr_seat *wlr_seat = _wlr_seat;
|
struct wlr_seat *wlr_seat = _wlr_seat;
|
||||||
assert(wl_client && wlr_seat);
|
assert(wl_client && wlr_seat);
|
||||||
if (version > 6) {
|
if (version > 6) {
|
||||||
wlr_log(L_ERROR, "Client requested unsupported wl_seat version, disconnecting");
|
wlr_log(L_ERROR,
|
||||||
|
"Client requested unsupported wl_seat version, disconnecting");
|
||||||
wl_client_destroy(wl_client);
|
wl_client_destroy(wl_client);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +183,8 @@ void wlr_seat_destroy(struct wlr_seat *wlr_seat) {
|
||||||
|
|
||||||
struct wlr_seat_handle *handle, *tmp;
|
struct wlr_seat_handle *handle, *tmp;
|
||||||
wl_list_for_each_safe(handle, tmp, &wlr_seat->handles, link) {
|
wl_list_for_each_safe(handle, tmp, &wlr_seat->handles, link) {
|
||||||
wl_resource_destroy(handle->wl_resource); // will destroy other resources as well
|
// will destroy other resources as well
|
||||||
|
wl_resource_destroy(handle->wl_resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_global_destroy(wlr_seat->wl_global);
|
wl_global_destroy(wlr_seat->wl_global);
|
||||||
|
|
Loading…
Reference in a new issue