mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
virtual-pointer: Handle inert seats
Inert seats are handled like inert outputs, so they work as if the wanted seat was NULL. The seat argument is only a suggestion, so this is okay.
This commit is contained in:
parent
07e27ba854
commit
f9f17b6236
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ static void virtual_pointer_manager_create_virtual_pointer_with_output(
|
||||||
if (seat) {
|
if (seat) {
|
||||||
struct wlr_seat_client *seat_client =
|
struct wlr_seat_client *seat_client =
|
||||||
wlr_seat_client_from_resource(seat);
|
wlr_seat_client_from_resource(seat);
|
||||||
event.suggested_seat = seat_client->seat;
|
event.suggested_seat = seat_client != NULL ? seat_client->seat : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|
Loading…
Reference in a new issue