Fix error in leaving the tablet pointer set under Wayland

Missed clearing the tablet pointer after updating removing the tablet
manager.
This commit is contained in:
Campbell Barton 2022-10-28 17:03:39 +11:00
parent af761021a3
commit bb16a3af7f
1 changed files with 3 additions and 0 deletions

View File

@ -4370,6 +4370,9 @@ static void gwl_registry_wl_seat_update(GWL_Display *display,
zwp_tablet_seat_v2_add_listener(seat->wp_tablet_seat, &tablet_seat_listener, seat);
}
}
else {
seat->wp_tablet_seat = nullptr;
}
if (display->wp_primary_selection_device_manager) {
if (seat->wp_primary_selection_device == nullptr) {