mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
scene_graph: Implement toplevel clipping
This commit is contained in:
parent
09e11dabb2
commit
9da295c11f
5 changed files with 27 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue