Clean up image support and add regression tests

This commit is contained in:
Michael Grant
2026-10-04 11:44:00 +01:00
parent c8f9c70534
commit 9ff51bd715
31 changed files with 465 additions and 633 deletions

View File

@@ -154,11 +154,8 @@ clients_calculate_size(int type, int current, struct client *c,
}
if (w != NULL && type == WINDOW_SIZE_MANUAL) {
/*
* Manual mode has no separate pixel size to apply, so keep the
* window's own - otherwise this always differs from the real
* w->xpixel/ypixel, and recalculate_size() can never tell a
* later call apart from an actual change, resizing (and
* re-firing window-resized) on every recalculation.
* Keep the window's pixel size in manual mode to avoid scheduling
* a resize on every recalculation.
*/
*xpixel = w->xpixel;
*ypixel = w->ypixel;