From 48c50bacba0e73a927e59724d8ad7a7b3ca74c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20G=C3=BCzel?= Date: Sun, 7 Dec 2025 13:29:19 +0300 Subject: [PATCH] Wayland: Fix laggy window resize scale_changed and size_changed were incorrectly initialized to true, causing redundant WindowRectMessage and DPI change events to be pushed on every configure event regardless of actual changes. --- platform/linuxbsd/wayland/wayland_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index e1d78d2c764..70536d53ae6 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -3443,8 +3443,8 @@ void WaylandThread::window_state_update_size(WindowState *p_ws, int p_width, int bool using_fractional = p_ws->preferred_fractional_scale > 0; // If neither is true we no-op. - bool scale_changed = true; - bool size_changed = true; + bool scale_changed = false; + bool size_changed = false; if (p_ws->rect.size.width != p_width || p_ws->rect.size.height != p_height) { p_ws->rect.size.width = p_width;