aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-10-02 12:05:24 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-10-02 12:05:24 +0200
commitfd70a93c6745757c81bd6c20d53dd6895d380fb7 (patch)
treeacc551804f0b79c6cb8f6f74470d05a6b0b44c90
parente6bb373240bc08668c8e6e14996a3f8765941158 (diff)
downloadriver-fd70a93c6745757c81bd6c20d53dd6895d380fb7.tar.gz
river-fd70a93c6745757c81bd6c20d53dd6895d380fb7.tar.xz
View: add fullscreen check missing in previous commit
-rw-r--r--river/View.zig16
1 files 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;
}