From: Jens Peters Date: Wed, 4 Jun 2025 20:23:38 +0000 (+0200) Subject: input: add tool_v2 NULL check X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=36c1948d0b902d696fd5b115ee85b54e5546f87d;p=proto%2Flabwc.git input: add tool_v2 NULL check Should be quite unusual, but tool_v2 can be NULL. --- diff --git a/src/input/tablet.c b/src/input/tablet.c index ea707308..7145f8a2 100644 --- a/src/input/tablet.c +++ b/src/input/tablet.c @@ -417,7 +417,7 @@ handle_tablet_tool_axis(struct wl_listener *listener, void *data) } } else { if (ev->updated_axes & (WLR_TABLET_TOOL_AXIS_X | WLR_TABLET_TOOL_AXIS_Y)) { - if (tool && tool->tool_v2->focused_surface) { + if (tool && tool->tool_v2 && tool->tool_v2->focused_surface) { wlr_tablet_v2_tablet_tool_notify_proximity_out( tool->tool_v2); }