aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVäinö Mäkelä <vaino.o.makela@gmail.com>2023-06-01 14:15:05 +0300
committerSimon Ser <contact@emersion.fr>2023-06-03 10:43:12 +0000
commitf9f17b6236cf1967f01b0fd751b0f96cf51f0dbd (patch)
treeeccdea6b35d0144ce508a5bc9a5b897e902739b2
parent07e27ba8549044d2462f3e659c3e77d2e4716fe5 (diff)
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.
-rw-r--r--types/wlr_virtual_pointer_v1.c2
1 files changed, 1 insertions, 1 deletions
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) {