[mutter/wip/nielsdg/small-fixes: 3/3] clutter/device-manager/evdev: Fix constraint cb
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/nielsdg/small-fixes: 3/3] clutter/device-manager/evdev: Fix constraint cb
- Date: Mon, 12 Nov 2018 14:38:48 +0000 (UTC)
commit 0b9404dcbe0835e30ec8b32d750bee70ec67b701
Author: Niels De Graef <Niels DeGraef barco com>
Date: Mon Nov 12 15:10:29 2018 +0100
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]