wayland size limit should only apply to toplevels oops
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
6c6b97d92e
commit
e2aa8dec7b
1 changed files with 8 additions and 4 deletions
|
|
@ -177,8 +177,10 @@ static void xdg_toplevel_configure(void* data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(width < 50) width = 50;
|
if(self->wayland.type == MwLL_WAYLAND_TOPLEVEL) {
|
||||||
if(height < 50) height = 50;
|
if(width < 50) width = 50;
|
||||||
|
if(height < 50) height = 50;
|
||||||
|
}
|
||||||
|
|
||||||
MwLLWaylandRegionInvalidate(self);
|
MwLLWaylandRegionInvalidate(self);
|
||||||
self->wayland.ww = width;
|
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 */
|
/* Prevent an integer underflow when the w/h is too low */
|
||||||
if(w < 50) w = 50;
|
if(handle->wayland.type == MwLL_WAYLAND_TOPLEVEL) {
|
||||||
if(h < 50) h = 50;
|
if(w < 50) w = 50;
|
||||||
|
if(h < 50) h = 50;
|
||||||
|
}
|
||||||
|
|
||||||
handle->wayland.ww = w;
|
handle->wayland.ww = w;
|
||||||
handle->wayland.wh = h;
|
handle->wayland.wh = h;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue