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/xwayland.c | |
parent | scene_graph: Port opacity and filter modes (diff) | |
download | sway-9da295c11f90dcfbf254ccf23b9124c87ccd8ddf.tar.gz sway-9da295c11f90dcfbf254ccf23b9124c87ccd8ddf.tar.zst sway-9da295c11f90dcfbf254ccf23b9124c87ccd8ddf.zip |
scene_graph: Implement toplevel clipping
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index e0c80c07..9f3f4d5f 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -436,9 +436,9 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
436 | if (container_is_floating(view->container)) { | 436 | if (container_is_floating(view->container)) { |
437 | view_update_size(view); | 437 | view_update_size(view); |
438 | transaction_commit_dirty_client(); | 438 | transaction_commit_dirty_client(); |
439 | } else { | ||
440 | view_center_surface(view); | ||
441 | } | 439 | } |
440 | |||
441 | view_center_and_clip_surface(view); | ||
442 | } | 442 | } |
443 | 443 | ||
444 | if (view->container->node.instruction) { | 444 | if (view->container->node.instruction) { |