mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
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
This commit is contained in:
parent
49cef51e6e
commit
122d8ce954
10 changed files with 76 additions and 92 deletions
|
|
@ -595,7 +595,7 @@ static void apply_mapping_from_region(struct wlr_input_device *device,
|
|||
double y1 = region->y1, y2 = region->y2;
|
||||
|
||||
if (region->mm && device->type == WLR_INPUT_DEVICE_TABLET_TOOL) {
|
||||
struct wlr_tablet *tablet = device->tablet;
|
||||
struct wlr_tablet *tablet = wlr_tablet_from_input_device(device);
|
||||
if (tablet->width_mm == 0 || tablet->height_mm == 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue