GHOST/Wayland: unbreak build without threaded event handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user