Skip to content
Snippets Groups Projects
Commit 391b5ac9 authored by Campbell Barton's avatar Campbell Barton
Browse files

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.
parent 8ee209cb
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment