mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
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:
parent
07e27ba854
commit
f9f17b6236
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user