aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/border.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-31 22:02:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commit70c2c504452eccbe5a74bc014e99b5b03db14124 (patch)
treefe9170fd58b539b4d8c19776ec853fd434c12c0e /sway/commands/border.c
parentDon't auto float xdg views if their dimensions are not set (diff)
downloadsway-70c2c504452eccbe5a74bc014e99b5b03db14124.tar.gz
sway-70c2c504452eccbe5a74bc014e99b5b03db14124.tar.zst
sway-70c2c504452eccbe5a74bc014e99b5b03db14124.zip
Fix changing borders on floating views
Diffstat (limited to 'sway/commands/border.c')
-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) {
37 "or 'border pixel <px>'"); 37 "or 'border pixel <px>'");
38 } 38 }
39 39
40 view_autoconfigure(view); 40 if (container_is_floating(view->swayc)) {
41 container_damage_whole(view->swayc);
42 container_set_geometry_from_floating_view(view->swayc);
43 container_damage_whole(view->swayc);
44 } else {
45 view_autoconfigure(view);
46 }
41 47
42 struct sway_seat *seat = input_manager_current_seat(input_manager); 48 struct sway_seat *seat = input_manager_current_seat(input_manager);
43 if (seat->cursor) { 49 if (seat->cursor) {