wayland: early return on SetWHImpl if width and height are the same
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-04-26 12:47:22 -07:00
commit 7cb7a2739e

View file

@ -2106,6 +2106,10 @@ static void actually_set_wh(MwLL handle) {
static void MwLLSetWHImpl(MwLL handle, int w, int h) {
WIDGET_CHECK(handle);
if(handle->wayland.ww == w && handle->wayland.wh == h) {
return;
}
/* Prevent an integer underflow when the w/h is too low */
if((w < 2 || h < 2)) {
handle->wayland.ww = 2;