From 0b9404dcbe0835e30ec8b32d750bee70ec67b701 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Mon, 12 Nov 2018 15:10:29 +0100 Subject: [PATCH] clutter/device-manager/evdev: Fix constraint cb As pointed out by @jadahl, this shouldn't matter too much, as the `constraint_callback` should always be set when initializing the mutter backend. --- clutter/clutter/evdev/clutter-device-manager-evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c b/clutter/clutter/evdev/clutter-device-manager-evdev.c index 176d9e8c0..12b34adfd 100644 --- a/clutter/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c @@ -257,8 +257,8 @@ _clutter_device_manager_evdev_constrain_pointer (ClutterDeviceManagerEvdev *mana float stage_width = clutter_actor_get_width (stage); float stage_height = clutter_actor_get_height (stage); - x = CLAMP (x, 0.f, stage_width - 1); - y = CLAMP (y, 0.f, stage_height - 1); + *new_x = CLAMP (x, 0.f, stage_width - 1); + *new_y = CLAMP (y, 0.f, stage_height - 1); } }