aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2019-02-26 20:21:33 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-27 00:35:51 -0500
commit35d610a43c01bd9a610a37564cc2de35dc88ca45 (patch)
treedd85d7096e6b781a8fff090d990d9dfa94c78a8f /sway/input/cursor.c
parentexecute_command: do not strip qoutes for cmd_mode (diff)
downloadsway-35d610a43c01bd9a610a37564cc2de35dc88ca45.tar.gz
sway-35d610a43c01bd9a610a37564cc2de35dc88ca45.tar.zst
sway-35d610a43c01bd9a610a37564cc2de35dc88ca45.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.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) {
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) {