From 391b5ac93c7a52c4db8a55e29fabeaa23389a31f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Nov 2023 16:52:28 +1100 Subject: [PATCH] Fix uninitialized pending actions for Windows under Wayland A windows pending actions wasn't cleared for new windows. Although I'm not aware of user visible bugs, this prevents unpredictable updates for new windows. --- intern/ghost/intern/GHOST_WindowWayland.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_WindowWayland.cc b/intern/ghost/intern/GHOST_WindowWayland.cc index 8ccb8b73fa9..c00015cb747 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cc +++ b/intern/ghost/intern/GHOST_WindowWayland.cc @@ -319,7 +319,7 @@ struct GWL_Window { * These pending actions can't be performed when WAYLAND handlers are running from a thread. * Postpone their execution until the main thread can handle them. */ - std::atomic pending_actions[PENDING_NUM]; + std::atomic pending_actions[PENDING_NUM] = {false}; #endif /* USE_EVENT_BACKGROUND_THREAD */ };