aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDavid96 <david@hameipe.de>2022-03-11 11:47:56 +0100
committerDavid96 <david@hameipe.de>2022-03-11 11:49:41 +0100
commit7a2c96dcbd170d6b9811af944bc905cf1376e987 (patch)
treed85e4ba387d7cee3c40bfebe403481351ebb3200 /backend
parent13fcdba75cf5f21cfd49c1a05f4fa62f77619b40 (diff)
types/wlr_tablet_tool: remove name ambiguity
It wasn't clear in the backend whether to use name or base.name, change it so base.name has to be used. Fixes https://github.com/swaywm/sway/issues/6884
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/tablet_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/wayland/tablet_v2.c b/backend/wayland/tablet_v2.c
index dfebd463..dc7f50fd 100644
--- a/backend/wayland/tablet_v2.c
+++ b/backend/wayland/tablet_v2.c
@@ -836,8 +836,8 @@ static void handle_tablet_name(void *data, struct zwp_tablet_v2 *zwp_tablet_v2,
struct wlr_wl_input_device *dev = data;
struct wlr_tablet *tablet = dev->wlr_input_device.tablet;
- free(tablet->name);
- tablet->name = strdup(name);
+ free(tablet->base.name);
+ tablet->base.name = strdup(name);
}
static void handle_tablet_id(void *data, struct zwp_tablet_v2 *zwp_tablet_v2,