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.
This commit is contained in:
Window Maker 2026-05-25 10:09:49 +02:00
parent 1733e3449c
commit d4d5240426
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}