diff --git a/intern/ghost/intern/GHOST_WindowWayland.cc b/intern/ghost/intern/GHOST_WindowWayland.cc index 0aac2299fab..dd2354dce77 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cc +++ b/intern/ghost/intern/GHOST_WindowWayland.cc @@ -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; } diff --git a/intern/ghost/intern/GHOST_WindowWayland.hh b/intern/ghost/intern/GHOST_WindowWayland.hh index e3f15ecc2f4..71a07573806 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.hh +++ b/intern/ghost/intern/GHOST_WindowWayland.hh @@ -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