diff --git a/src/plugins/platforms/wayland/qwaylandwindow_p.h b/src/plugins/platforms/wayland/qwaylandwindow_p.h index 234c0645ef4..06d8dbed38b 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow_p.h +++ b/src/plugins/platforms/wayland/qwaylandwindow_p.h @@ -301,7 +301,7 @@ protected: GestureState mGestureState = GestureNotActive; #endif - bool mFrameCallbackTimedOut = false; // Whether the frame callback has timed out + std::atomic_bool mFrameCallbackTimedOut = false; // Whether the frame callback has timed out int mFrameCallbackCheckIntervalTimerId = -1; QAtomicInt mWaitingForUpdateDelivery = false;