diff options
author | M Stoeckl <code@mstoeckl.com> | 2019-01-22 10:07:38 -0500 |
---|---|---|
committer | M Stoeckl <code@mstoeckl.com> | 2019-01-22 10:12:04 -0500 |
commit | 0af5b26e41c5141d4094652133c230d76bf82e56 (patch) | |
tree | 75c61907f094838e23899231ec5ec955c530f692 /sway/commands/focus.c | |
parent | Merge pull request #3494 from ianyfan/commands (diff) | |
download | sway-0af5b26e41c5141d4094652133c230d76bf82e56.tar.gz sway-0af5b26e41c5141d4094652133c230d76bf82e56.tar.zst sway-0af5b26e41c5141d4094652133c230d76bf82e56.zip |
Fix dead stores found by scan-build
In addition to removing unused code, two minor problems are fixed:
(1) `resize set` and `resize adjust` did not error when given
too many arguments.
(2) `orientation` was incorrectly overridden to be 'U' for
scroll events in the swaybar tray `handle_click` function.
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index e7680062..0622f2e8 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c | |||
@@ -123,7 +123,6 @@ static struct sway_node *node_get_in_direction(struct sway_container *container, | |||
123 | 123 | ||
124 | if (can_move) { | 124 | if (can_move) { |
125 | if (desired < 0 || desired >= siblings->length) { | 125 | if (desired < 0 || desired >= siblings->length) { |
126 | can_move = false; | ||
127 | int len = siblings->length; | 126 | int len = siblings->length; |
128 | if (config->focus_wrapping != WRAP_NO && !wrap_candidate | 127 | if (config->focus_wrapping != WRAP_NO && !wrap_candidate |
129 | && len > 1) { | 128 | && len > 1) { |