From f9f17b6236cf1967f01b0fd751b0f96cf51f0dbd Mon Sep 17 00:00:00 2001 From: Väinö Mäkelä Date: Thu, 1 Jun 2023 14:15:05 +0300 Subject: 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. --- types/wlr_virtual_pointer_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_virtual_pointer_v1.c b/types/wlr_virtual_pointer_v1.c index b452ff56..44cd21ce 100644 --- a/types/wlr_virtual_pointer_v1.c +++ b/types/wlr_virtual_pointer_v1.c @@ -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) { -- cgit v1.2.3