aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/border.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c
index 4ba361da..0b059562 100644
--- a/sway/commands/border.c
+++ b/sway/commands/border.c
@@ -37,7 +37,13 @@ struct cmd_results *cmd_border(int argc, char **argv) {
"or 'border pixel <px>'");
}
- view_autoconfigure(view);
+ if (container_is_floating(view->swayc)) {
+ container_damage_whole(view->swayc);
+ container_set_geometry_from_floating_view(view->swayc);
+ container_damage_whole(view->swayc);
+ } else {
+ view_autoconfigure(view);
+ }
struct sway_seat *seat = input_manager_current_seat(input_manager);
if (seat->cursor) {