mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
seat: use WL_SEAT_ERROR_CAPABILITY
Depends on [1]. [1]: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/79
This commit is contained in:
parent
533a36f05a
commit
8d76d3263d
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ conf_data.set10('WLR_HAS_XCB_ERRORS', false)
|
||||||
conf_data.set10('WLR_HAS_XCB_ICCCM', false)
|
conf_data.set10('WLR_HAS_XCB_ICCCM', false)
|
||||||
conf_data.set10('WLR_HAS_XDG_FOREIGN', false)
|
conf_data.set10('WLR_HAS_XDG_FOREIGN', false)
|
||||||
|
|
||||||
wayland_server = dependency('wayland-server', version: '>=1.18')
|
wayland_server = dependency('wayland-server', version: '>=1.19')
|
||||||
wayland_client = dependency('wayland-client')
|
wayland_client = dependency('wayland-client')
|
||||||
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
|
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
|
||||||
egl = dependency('egl')
|
egl = dependency('egl')
|
||||||
|
|
|
@ -20,7 +20,7 @@ static void seat_handle_get_pointer(struct wl_client *client,
|
||||||
struct wlr_seat_client *seat_client =
|
struct wlr_seat_client *seat_client =
|
||||||
wlr_seat_client_from_resource(seat_resource);
|
wlr_seat_client_from_resource(seat_resource);
|
||||||
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_POINTER)) {
|
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_POINTER)) {
|
||||||
wl_resource_post_error(seat_resource, 0,
|
wl_resource_post_error(seat_resource, WL_SEAT_ERROR_MISSING_CAPABILITY,
|
||||||
"wl_seat.get_pointer called when no pointer capability has existed");
|
"wl_seat.get_pointer called when no pointer capability has existed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ static void seat_handle_get_keyboard(struct wl_client *client,
|
||||||
struct wlr_seat_client *seat_client =
|
struct wlr_seat_client *seat_client =
|
||||||
wlr_seat_client_from_resource(seat_resource);
|
wlr_seat_client_from_resource(seat_resource);
|
||||||
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_KEYBOARD)) {
|
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_KEYBOARD)) {
|
||||||
wl_resource_post_error(seat_resource, 0,
|
wl_resource_post_error(seat_resource, WL_SEAT_ERROR_MISSING_CAPABILITY,
|
||||||
"wl_seat.get_keyboard called when no keyboard capability has existed");
|
"wl_seat.get_keyboard called when no keyboard capability has existed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ static void seat_handle_get_touch(struct wl_client *client,
|
||||||
struct wlr_seat_client *seat_client =
|
struct wlr_seat_client *seat_client =
|
||||||
wlr_seat_client_from_resource(seat_resource);
|
wlr_seat_client_from_resource(seat_resource);
|
||||||
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_TOUCH)) {
|
if (!(seat_client->seat->accumulated_capabilities & WL_SEAT_CAPABILITY_TOUCH)) {
|
||||||
wl_resource_post_error(seat_resource, 0,
|
wl_resource_post_error(seat_resource, WL_SEAT_ERROR_MISSING_CAPABILITY,
|
||||||
"wl_seat.get_touch called when no touch capability has existed");
|
"wl_seat.get_touch called when no touch capability has existed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue