From 31fec2f9cbfcf4c51c9e7c5eba0267c205e29f97 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Sat, 21 Sep 2024 16:16:35 +0900 Subject: [PATCH] xdg: don't always adjust the window size before configure This fixes the small flicker when the client initially submits a window size smaller than the minimum value. --- src/xdg.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/xdg.c b/src/xdg.c index b73ff84d..aefc0a33 100644 --- a/src/xdg.c +++ b/src/xdg.c @@ -396,15 +396,6 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo) { uint32_t serial = 0; - /* - * Leave a size of 0x0 unchanged; this has special meaning in - * an xdg-toplevel configure event and requests the application - * to choose its own preferred size. - */ - if (!wlr_box_empty(&geo)) { - view_adjust_size(view, &geo.width, &geo.height); - } - /* * We do not need to send a configure request unless the size * changed (wayland has no notion of a global position). If the