Root: keep all fullscreen views the correct size
Currently we may resize fullscreen views when they become visible/not visible when switching tags even if their fullscreen state remains constant. This is suboptimal, and as it turns out also much more complex to implement.
This commit is contained in:
@ -341,7 +341,10 @@ pub fn setPendingOutput(view: *Self, output: *Output) void {
|
||||
}
|
||||
output.pending.focus_stack.prepend(view);
|
||||
|
||||
if (view.pending.float) {
|
||||
if (view.pending.fullscreen) {
|
||||
view.pending.box = .{ .x = 0, .y = 0, .width = undefined, .height = undefined };
|
||||
output.wlr_output.effectiveResolution(&view.pending.box.width, &view.pending.box.height);
|
||||
} else if (view.pending.float) {
|
||||
view.pending.clampToOutput();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user