diff options
-rw-r--r-- | types/wlr_virtual_pointer_v1.c | 2 |
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) { |