Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-10-28 09:03:39 +0300
committerCampbell Barton <campbell@blender.org>2022-10-28 09:03:39 +0300
commitbb16a3af7f8eb7a686d316237c5a74f72ce5be21 (patch)
treec42e8837610015db0e0473123cfce974ca0eff45 /intern
parentaf761021a3437574fe43ce8e5136eabf9a4fd38e (diff)
Fix error in leaving the tablet pointer set under Wayland
Missed clearing the tablet pointer after updating removing the tablet manager.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index c15307da0b8..88540dc4260 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -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) {