Update view.float_box when setting a floating view to fullscreen

This commit is contained in:
Leon Henrik Plickat 2020-10-17 17:05:24 +02:00 committed by Isaac Freund
parent 036f9a1cb9
commit b6861bc80b

View File

@ -171,7 +171,8 @@ pub fn applyPending(self: *Self) void {
arrange_output = true;
// If switching from float to something else save the dimensions
if (self.current.float and !self.pending.float)
if ((self.current.float and !self.pending.float) or
(self.current.float and !self.current.fullscreen and self.pending.fullscreen))
self.float_box = self.current.box;
// If switching from something else to float restore the dimensions