mirror of
https://github.com/labwc/labwc.git
synced 2026-02-27 01:40:30 -05:00
input: add tool_v2 NULL check
Should be quite unusual, but tool_v2 can be NULL.
This commit is contained in:
parent
a73b866129
commit
36c1948d0b
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ handle_tablet_tool_axis(struct wl_listener *listener, void *data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ev->updated_axes & (WLR_TABLET_TOOL_AXIS_X | WLR_TABLET_TOOL_AXIS_Y)) {
|
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(
|
wlr_tablet_v2_tablet_tool_notify_proximity_out(
|
||||||
tool->tool_v2);
|
tool->tool_v2);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue