From 6ceb63aacca53403c2a7e9cb4799e30fba8dfc3e Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 12 Aug 2023 01:15:06 +0200 Subject: [PATCH] Do not use atomic_load() with variables that are not atomic. --- src/device/mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/mouse.c b/src/device/mouse.c index 3921b6eb6..4ca2d0a6f 100644 --- a/src/device/mouse.c +++ b/src/device/mouse.c @@ -423,8 +423,8 @@ mouse_set_buttons(int buttons) void mouse_get_abs_coords(double *x_abs, double *y_abs) { - *x_abs = atomic_load(&mouse_x_abs); - *y_abs = atomic_load(&mouse_y_abs); + *x_abs = mouse_x_abs; + *y_abs = mouse_y_abs; } void