scene_graph: Implement toplevel clipping

This commit is contained in:
Alexander Orzechowski 2023-11-22 15:11:12 -05:00 committed by Kirill Primak
parent 09e11dabb2
commit 9da295c11f
5 changed files with 27 additions and 12 deletions

View file

@ -248,7 +248,7 @@ static void apply_container_state(struct sway_container *container,
// the container. This is important for fullscreen views which
// refuse to resize to the size of the output.
if (view->surface) {
view_center_surface(view);
view_center_and_clip_surface(view);
}
}
}