diff options
-rw-r--r-- | sway/input/tablet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/tablet.c b/sway/input/tablet.c index 8d6e95b3..b74347aa 100644 --- a/sway/input/tablet.c +++ b/sway/input/tablet.c | |||
@@ -106,8 +106,7 @@ static void handle_tablet_tool_set_cursor(struct wl_listener *listener, void *da | |||
106 | } | 106 | } |
107 | 107 | ||
108 | struct wl_client *focused_client = NULL; | 108 | struct wl_client *focused_client = NULL; |
109 | struct wlr_surface *focused_surface = | 109 | struct wlr_surface *focused_surface = tool->tablet_v2_tool->focused_surface; |
110 | cursor->seat->wlr_seat->pointer_state.focused_surface; | ||
111 | if (focused_surface != NULL) { | 110 | if (focused_surface != NULL) { |
112 | focused_client = wl_resource_get_client(focused_surface->resource); | 111 | focused_client = wl_resource_get_client(focused_surface->resource); |
113 | } | 112 | } |