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:
parent
1733e3449c
commit
d4d5240426
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue