diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-22 15:11:12 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 9da295c11f90dcfbf254ccf23b9124c87ccd8ddf (patch) | |
tree | 328cf15feeccd8bdc90f1205542857ab34afeaa2 /sway/desktop/xdg_shell.c | |
parent | 09e11dabb203513c038b723e50de2fd836e7edb3 (diff) |
scene_graph: Implement toplevel clipping
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index 48b7b4c7..7cdd97c8 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c @@ -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) { |