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.
This commit is contained in:
Niels De Graef 2018-11-12 15:10:29 +01:00
parent 9fb46cca55
commit 0b9404dcbe

View File

@ -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);
}
}