]> git.sur5r.net Git - i3/i3/blobdiff - i3-save-tree
Merge pull request #3344 from downzer0/chore/i3-sensible-terminal--hyper
[i3/i3] / i3-save-tree
index 18a1a38068b7da28b9b4efd69c92da4bbb6e4a72..1e56a0452128ffbfd172c636426827ab9d728611 100755 (executable)
@@ -98,7 +98,8 @@ my %allowed_keys = map { ($_, 1) } qw(
     name
     geometry
     window_properties
-    mark
+    marks
+    rect
 );
 
 sub strip_containers {
@@ -116,6 +117,9 @@ sub strip_containers {
 
     delete $tree->{geometry} if zero_rect($tree->{geometry});
 
+    # Retain the rect for floating containers to keep their positions.
+    delete $tree->{rect} unless $tree->{type} eq 'floating_con';
+
     delete $tree->{current_border_width} if $tree->{current_border_width} == -1;
 
     for my $key (keys %$tree) {