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);
}
}
}

View file

@ -306,9 +306,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
view->geometry.height);
}
transaction_commit_dirty_client();
} else {
view_center_surface(view);
}
view_center_and_clip_surface(view);
}
if (view->container->node.instruction) {

View file

@ -436,9 +436,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
if (container_is_floating(view->container)) {
view_update_size(view);
transaction_commit_dirty_client();
} else {
view_center_surface(view);
}
view_center_and_clip_surface(view);
}
if (view->container->node.instruction) {