view: always set fullscreen x/y to 0,0
This position is output relative not layout relative.
This commit is contained in:
parent
c95c0416d5
commit
e019b9de47
1 changed files with 9 additions and 4 deletions
|
@ -163,10 +163,15 @@ pub fn applyPending(self: *Self) void {
|
||||||
self.pending.box = self.float_box;
|
self.pending.box = self.float_box;
|
||||||
|
|
||||||
// If switching to fullscreen set the dimensions to the full area of the output
|
// If switching to fullscreen set the dimensions to the full area of the output
|
||||||
if (!self.current.fullscreen and self.pending.fullscreen)
|
if (!self.current.fullscreen and self.pending.fullscreen) {
|
||||||
self.pending.box = Box.fromWlrBox(
|
const layout_box = c.wlr_output_layout_get_box(self.output.root.wlr_output_layout, self.output.wlr_output);
|
||||||
c.wlr_output_layout_get_box(self.output.root.wlr_output_layout, self.output.wlr_output).*,
|
self.pending.box = .{
|
||||||
);
|
.x = 0,
|
||||||
|
.y = 0,
|
||||||
|
.width = @intCast(u32, layout_box.*.width),
|
||||||
|
.height = @intCast(u32, layout_box.*.height),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// If switching from fullscreen to layout, arrange the output to get
|
// If switching from fullscreen to layout, arrange the output to get
|
||||||
// assigned the proper size.
|
// assigned the proper size.
|
||||||
|
|
Loading…
Reference in a new issue