mirror of
https://github.com/brl/mutter.git
synced 2025-08-01 14:15:30 +00: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user