Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
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