aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-08-01 20:03:32 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-08-01 20:03:32 +0200
commit7d77160fe33c4ed1c8b1059cc7be5d0e4e408e5e (patch)
treee23a07627866868f73833340b4a5b59f778ba995
parentef4efbcadff30ce3bfd7ea28b61a136dba5a1393 (diff)
downloadriver-7d77160fe33c4ed1c8b1059cc7be5d0e4e408e5e.tar.gz
river-7d77160fe33c4ed1c8b1059cc7be5d0e4e408e5e.tar.xz
view: arrange on unmap if fullscreened from layout
We don't rearrange the layout on fullscreening a view that is part of the layout since the fullscreened view hides the layout. This means that if a non-floating fullscreen view is closed the layout needs to be rearranged.
-rw-r--r--river/View.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/river/View.zig b/river/View.zig
index e6f2d2a..2154829 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -373,7 +373,8 @@ pub fn unmap(self: *Self) void {
self.output.sendViewTags();
- if (!self.current.float and !self.current.fullscreen) root.arrange();
+ // Still need to arrange if fullscreened from the layout
+ if (!self.current.float) root.arrange();
}
/// Destory the view and free the ViewStack node holding it.