From b6861bc80bce4561001c0a624ba2ad52933c24ae Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Sat, 17 Oct 2020 17:05:24 +0200 Subject: [PATCH] Update view.float_box when setting a floating view to fullscreen --- river/View.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/river/View.zig b/river/View.zig index c8ce288..2e312f7 100644 --- a/river/View.zig +++ b/river/View.zig @@ -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