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:
Väinö Mäkelä 2023-06-01 14:15:05 +03:00 committed by Simon Ser
parent 07e27ba854
commit f9f17b6236
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ static void virtual_pointer_manager_create_virtual_pointer_with_output(
if (seat) {
struct wlr_seat_client *seat_client =
wlr_seat_client_from_resource(seat);
event.suggested_seat = seat_client->seat;
event.suggested_seat = seat_client != NULL ? seat_client->seat : NULL;
}
if (output) {