diff --git a/src/zen/compact-mode/ZenMouseTracker.cpp b/src/zen/compact-mode/ZenMouseTracker.cpp index aa66247f3..1971ead2c 100644 --- a/src/zen/compact-mode/ZenMouseTracker.cpp +++ b/src/zen/compact-mode/ZenMouseTracker.cpp @@ -5,7 +5,8 @@ #include "ZenMouseTracker.h" #include "ZenMouseTrackerInternal.h" -#include "mozilla/Atomic.h" +#include + #include "mozilla/Services.h" #include "mozilla/WidgetUtils.h" #include "nsIObserverService.h" @@ -23,9 +24,9 @@ static ZenMouseTracker* sInstance = nullptr; // where as little work as possible should happen. These are atomic since // some backends (e.g. the macOS global event monitor) may deliver the moves // off the main thread. -static mozilla::Atomic sLatestPointerX(0); -static mozilla::Atomic sLatestPointerY(0); -static mozilla::Atomic sPendingEvaluation(false); +static std::atomic sLatestPointerX{0}; +static std::atomic sLatestPointerY{0}; +static std::atomic sPendingEvaluation{false}; ZenMouseTracker::ZenMouseTracker() { MOZ_ASSERT(NS_IsMainThread());