wayland size limit should only apply to toplevels oops
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-07-20 21:18:26 -07:00
commit e2aa8dec7b

View file

@ -177,8 +177,10 @@ static void xdg_toplevel_configure(void* data,
}
}
if(width < 50) width = 50;
if(height < 50) height = 50;
if(self->wayland.type == MwLL_WAYLAND_TOPLEVEL) {
if(width < 50) width = 50;
if(height < 50) height = 50;
}
MwLLWaylandRegionInvalidate(self);
self->wayland.ww = width;
@ -1115,8 +1117,10 @@ static void MwLLSetWHImpl(MwLL handle, int w, int h) {
}
/* Prevent an integer underflow when the w/h is too low */
if(w < 50) w = 50;
if(h < 50) h = 50;
if(handle->wayland.type == MwLL_WAYLAND_TOPLEVEL) {
if(w < 50) w = 50;
if(h < 50) h = 50;
}
handle->wayland.ww = w;
handle->wayland.wh = h;