mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
9fb46cca55
commit
0b9404dcbe
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user