diff options
author | Rouven Czerwinski <rouven@czerwinskis.de> | 2019-02-26 20:21:33 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-04 12:50:27 -0500 |
commit | 97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2 (patch) | |
tree | 776bfb9bdbda5ae7e10cf34c74d5b9f13def0115 | |
parent | 8460924a7c8dfc401c40b11197f3ce8ddad88523 (diff) | |
download | sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.zip sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.tar.gz sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.tar.bz2 |
cursor: remove unused node assignement
The node variable is not used before its reassigned later in the function,
remove the assignement.
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index fb4728b..210e614 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) { |