summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-06 16:55:10 +0200
committerZenWalker <[email protected]>2020-04-16 18:45:05 +0200
commitdb698c3d94d786e01566afd996284a60d3e8fa02 (patch)
treebf83bf320a689e07e0f46f4c3b1f8f2adc847531 /plugins
parent820a5d620fd66372820353d0bd2604bcf02b88c1 (diff)
downloadmate-settings-daemon-db698c3d94d786e01566afd996284a60d3e8fa02.tar.bz2
mate-settings-daemon-db698c3d94d786e01566afd996284a60d3e8fa02.tar.xz
mouse: Remove warnings about absolute value function for long
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mouse/msd-mouse-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c
index 152815c..9d1d7c4 100644
--- a/plugins/mouse/msd-mouse-manager.c
+++ b/plugins/mouse/msd-mouse-manager.c
@@ -1360,11 +1360,11 @@ set_natural_scroll_synaptics (XDeviceInfo *device_info,
if (rc == Success && type == XA_INTEGER && format == 32 && nitems >= 2) {
ptr = (glong *) data;
if (natural_scroll) {
- ptr[0] = -abs(ptr[0]);
- ptr[1] = -abs(ptr[1]);
+ ptr[0] = -labs(ptr[0]);
+ ptr[1] = -labs(ptr[1]);
} else {
- ptr[0] = abs(ptr[0]);
- ptr[1] = abs(ptr[1]);
+ ptr[0] = labs(ptr[0]);
+ ptr[1] = labs(ptr[1]);
}
XChangeDeviceProperty (GDK_DISPLAY_XDISPLAY (display), device, prop,