git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit1b5aa815443c3e90aa5bcc45227365af5ae36652
parentcebc21276f
authorIsaac Freund <[email protected]>
date2021-10-02 12:05
View: add fullscreen check missing in previous commit

 river/View.zig | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/river/View.zig b/river/View.zig
index 4d435fd..347488c 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -303,13 +303,15 @@ pub fn sendToOutput(self: *Self, destination_output: *Output) void {
         self.foreign_toplevel_handle.?.outputEnter(destination_output.wlr_output);
     }
 
-    const dimensions = destination_output.getEffectiveResolution();
-    self.pending.box = .{
-        .x = 0,
-        .y = 0,
-        .width = dimensions.width,
-        .height = dimensions.height,
-    };
+    if (self.pending.fullscreen) {
+        const dimensions = destination_output.getEffectiveResolution();
+        self.pending.box = .{
+            .x = 0,
+            .y = 0,
+            .width = dimensions.width,
+            .height = dimensions.height,
+        };
+    }
     self.output = destination_output;
 }