GHOST/Wayland: unbreak build without threaded event handling

This commit is contained in:
Campbell Barton
2023-12-14 13:53:17 +11:00
parent 4f609a4f96
commit 42e7d9fc3c
2 changed files with 7 additions and 1 deletions

View File

@@ -1311,7 +1311,10 @@ static void libdecor_frame_handle_configure(libdecor_frame *frame,
}
}
if (decor.initial_configure_seen_with_size == false) {
if (is_main_thread) {
# ifdef USE_EVENT_BACKGROUND_THREAD
if (is_main_thread)
# endif
{
if (size_next[0] && size_next[1]) {
decor.initial_configure_seen_with_size = true;
}

View File

@@ -51,6 +51,9 @@
*
* - Lock #GWL_Window.frame_pending_mutex before changing window size & frame settings,
* this is flushed in #GHOST_WindowWayland::pending_actions_handle.
*
* \note Keep this define as it can be useful to disable threading when troubleshooting
* issues with events.
*/
#define USE_EVENT_BACKGROUND_THREAD