aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/border.c')
-rw-r--r--sway/commands/border.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c
index 0211e40c..c888622e 100644
--- a/sway/commands/border.c
+++ b/sway/commands/border.c
@@ -20,7 +20,7 @@ struct cmd_results *cmd_border(int argc, char **argv) {
"Expected 'border <normal|pixel|none|toggle> [<n>]");
}
- swayc_t *view = get_focused_view(&root_container);
+ swayc_t *view = current_container;
enum swayc_border_types border = view->border_type;
int thickness = view->border_thickness;