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 /sway/input/cursor.c | |
parent | execute_command: do not strip qoutes for cmd_mode (diff) | |
download | sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.tar.gz sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.tar.zst sway-97d3fb17a43a0abfb6540e63f3ab85c973e7d9a2.zip |
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.c | 2 |
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) { | |||
431 | struct sway_node *node = NULL; | 431 | struct sway_node *node = NULL; |
432 | double sx, sy; | 432 | double sx, sy; |
433 | if (cursor->active_constraint) { | 433 | if (cursor->active_constraint) { |
434 | node = node_at_coords(cursor->seat, | 434 | node_at_coords(cursor->seat, |
435 | cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); | 435 | cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); |
436 | 436 | ||
437 | if (cursor->active_constraint->surface != surface) { | 437 | if (cursor->active_constraint->surface != surface) { |