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.
master
Väinö Mäkelä 2 years ago committed by Simon Ser
parent 07e27ba854
commit f9f17b6236

@ -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…
Cancel
Save