From d4d5240426af120620be86d6e6ae83deb920c867 Mon Sep 17 00:00:00 2001 From: Window Maker Date: Mon, 25 May 2026 10:09:49 +0200 Subject: [PATCH] wl_backend: raise xwayland minimum size threshold to 64px xterm's initial xw_surface size is 10x17 which passed the > 1 check. Use >= 64 as the threshold for falling back to 640x480 default. --- src/backend/wayland/wl_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index 4c923da..c67cfee 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -7262,8 +7262,8 @@ wl_window_get_client_attrs(WNativeWindow win, WClientAttributes *out) if (v && v->xw_surface) { if (v->xw_surface->surface && v->xw_surface->surface->mapped) { out->map_state = WCLIENT_VIEWABLE; - out->width = v->xw_surface->width > 1 ? v->xw_surface->width : 640; - out->height = v->xw_surface->height > 1 ? v->xw_surface->height : 480; + out->width = v->xw_surface->width >= 64 ? v->xw_surface->width : 640; + out->height = v->xw_surface->height >= 64 ? v->xw_surface->height : 480; } else { out->map_state = WCLIENT_UNMAPPED; }