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.
This commit is contained in:
Isaac Freund 2020-08-01 20:03:32 +02:00
parent ef4efbcadf
commit 7d77160fe3
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -373,7 +373,8 @@ pub fn unmap(self: *Self) void {
self.output.sendViewTags(); 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. /// Destory the view and free the ViewStack node holding it.