diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-21 23:10:38 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-06-22 12:44:15 -0400 |
commit | 122d8ce95484bd097bf3a15b8191213bd6969b41 (patch) | |
tree | b97bb88c4bf7b566747bed4cce84f51842cd21a5 /sway/input/cursor.c | |
parent | Allocate enough space for `cmd_results->error` (diff) | |
download | sway-122d8ce95484bd097bf3a15b8191213bd6969b41.tar.gz sway-122d8ce95484bd097bf3a15b8191213bd6969b41.tar.zst sway-122d8ce95484bd097bf3a15b8191213bd6969b41.zip |
Remove access to wlr_input_device union
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3626
Closes: https://github.com/swaywm/sway/issues/7077
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index e87594ee..2ee63124 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -595,7 +595,7 @@ static void apply_mapping_from_region(struct wlr_input_device *device, | |||
595 | double y1 = region->y1, y2 = region->y2; | 595 | double y1 = region->y1, y2 = region->y2; |
596 | 596 | ||
597 | if (region->mm && device->type == WLR_INPUT_DEVICE_TABLET_TOOL) { | 597 | if (region->mm && device->type == WLR_INPUT_DEVICE_TABLET_TOOL) { |
598 | struct wlr_tablet *tablet = device->tablet; | 598 | struct wlr_tablet *tablet = wlr_tablet_from_input_device(device); |
599 | if (tablet->width_mm == 0 || tablet->height_mm == 0) { | 599 | if (tablet->width_mm == 0 || tablet->height_mm == 0) { |
600 | return; | 600 | return; |
601 | } | 601 | } |