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.
This commit is contained in:
Campbell Barton 2023-11-09 16:52:28 +11:00
parent 8ee209cb77
commit 391b5ac93c
1 changed files with 1 additions and 1 deletions

View File

@ -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<bool> pending_actions[PENDING_NUM];
std::atomic<bool> pending_actions[PENDING_NUM] = {false};
#endif /* USE_EVENT_BACKGROUND_THREAD */
};