From af9fa0d1057c0ca47c74369b0319a85102e40650 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 2 Feb 2024 14:17:25 +0900 Subject: [PATCH] wayland: remove unneccessary commit and roundtrip --- lib/renderers/wayland/window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/renderers/wayland/window.c b/lib/renderers/wayland/window.c index 8d8f196..c3b19e7 100644 --- a/lib/renderers/wayland/window.c +++ b/lib/renderers/wayland/window.c @@ -258,8 +258,6 @@ bm_wl_window_render(struct window *window, struct wl_display *display, struct bm window->height = ceil(result.height / window->scale); zwlr_layer_surface_v1_set_size(window->layer_surface, window->width, window->height); - wl_surface_commit(window->surface); - wl_display_roundtrip(display); destroy_buffer(buffer); }