From 97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 26 Feb 2019 20:21:33 +0100 Subject: [PATCH] cursor: remove unused node assignement The node variable is not used before its reassigned later in the function, remove the assignement. --- sway/input/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/cursor.c b/sway/input/cursor.c index fb4728b42..210e6144d 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -431,7 +431,7 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) { struct sway_node *node = NULL; double sx, sy; if (cursor->active_constraint) { - node = node_at_coords(cursor->seat, + node_at_coords(cursor->seat, cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); if (cursor->active_constraint->surface != surface) {