aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2019-02-26 20:21:33 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-02-27 00:35:51 -0500
commit35d610a43c01bd9a610a37564cc2de35dc88ca45 (patch)
treedd85d7096e6b781a8fff090d990d9dfa94c78a8f /sway/input/cursor.c
parentefe370ba1220b11d5c736b23cb109d47483878d2 (diff)
cursor: remove unused node assignement
The node variable is not used before its reassigned later in the function, remove the assignement.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index fb4728b4..210e6144 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) {