mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
backend/native: Don't double-scale pointer motions on scaled monitors
We manually scaled pointer motions when they travel over a scaled monitor. When a stage view of a monitor is also scaled, in practice this meant we scaled twice. Avoid this by only manually scaling the pointer motion when stage views are not scaled. https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
parent
fef81cd628
commit
5f2bb43061
@ -341,6 +341,9 @@ relative_motion_filter (ClutterInputDevice *device,
|
||||
MetaLogicalMonitor *logical_monitor, *dest_logical_monitor;
|
||||
float new_dx, new_dy;
|
||||
|
||||
if (meta_is_stage_views_scaled ())
|
||||
return;
|
||||
|
||||
logical_monitor = meta_monitor_manager_get_logical_monitor_at (monitor_manager,
|
||||
x, y);
|
||||
if (!logical_monitor)
|
||||
|
Loading…
Reference in New Issue
Block a user