[Bf-blender-cvs] [bb16a3af7f8] master: Fix error in leaving the tablet pointer set under Wayland
Campbell Barton
noreply at git.blender.org
Fri Oct 28 08:08:40 CEST 2022
Commit: bb16a3af7f8eb7a686d316237c5a74f72ce5be21
Author: Campbell Barton
Date: Fri Oct 28 17:03:39 2022 +1100
Branches: master
https://developer.blender.org/rBbb16a3af7f8eb7a686d316237c5a74f72ce5be21
Fix error in leaving the tablet pointer set under Wayland
Missed clearing the tablet pointer after updating removing the tablet
manager.
===================================================================
M intern/ghost/intern/GHOST_SystemWayland.cpp
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list