From 045ebdf0aec70e77fdf61e5e7a256f56569a8257 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Sun, 2 Aug 2026 21:14:14 +0200 Subject: [PATCH] gh-13108: Start using std::atomic instead of mozilla::Atomic (gh-14820) --- src/zen/compact-mode/ZenMouseTracker.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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());