diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2021-09-30 17:17:46 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-09-30 17:17:46 +0200 |
| commit | e6bb373240bc08668c8e6e14996a3f8765941158 (patch) | |
| tree | 7b1e405640707d7441af4c4aba2fe429decdc3da | |
| parent | 8ec0e30fd76d528a999846496fc1ac2302424a53 (diff) | |
| download | river-e6bb373240bc08668c8e6e14996a3f8765941158.tar.gz river-e6bb373240bc08668c8e6e14996a3f8765941158.tar.xz | |
View: resize if moved between outputs while fullscreen
| -rw-r--r-- | river/View.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/river/View.zig b/river/View.zig index af380d3..4d435fd 100644 --- a/river/View.zig +++ b/river/View.zig @@ -303,6 +303,13 @@ 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, + }; self.output = destination_output; } |
