Fix Wayland fractional scaling < 1.0

This commit is contained in:
Michael Bradley
2024-06-16 14:57:22 -04:00
parent 2a6870b21f
commit 7667b69ae5

View File

@@ -138,7 +138,7 @@ update_os_window_viewport(OSWindow *window, bool notify_boss) {
}
int min_width, min_height; min_size_for_os_window(window, &min_width, &min_height);
window->viewport_resized_at = monotonic();
if (w <= 0 || h <= 0 || fw < min_width || fh < min_height || fw < w || fh < h) {
if (w <= 0 || h <= 0 || fw < min_width || fh < min_height) {
log_error("Invalid geometry ignored: framebuffer: %dx%d window: %dx%d\n", fw, fh, w, h);
if (!window->viewport_updated_at_least_once) {
window->viewport_width = min_width; window->viewport_height = min_height;