Skip to content

Instantly share code, notes, and snippets.

@wakira
Created August 8, 2022 00:51
Show Gist options
  • Select an option

  • Save wakira/6a9e4845ff99f5e419575e88e5d3a1ae to your computer and use it in GitHub Desktop.

Select an option

Save wakira/6a9e4845ff99f5e419575e88e5d3a1ae to your computer and use it in GitHub Desktop.
Disable Mutter's Cursor Scaling
diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c
index 4c3d0179a..58328ebc2 100644
--- a/src/backends/native/meta-seat-impl.c
+++ b/src/backends/native/meta-seat-impl.c
@@ -1182,8 +1182,9 @@ meta_seat_impl_filter_relative_motion (MetaSeatImpl *seat_impl,
return;
meta_viewport_info_get_view_info (seat_impl->viewports, view, NULL, &scale);
- new_dx = (*dx) * scale;
- new_dy = (*dy) * scale;
+ // HACK: disable relative motion scaling
+ new_dx = (*dx);
+ new_dy = (*dy);
dest_view = meta_viewport_info_get_view_at (seat_impl->viewports,
x + new_dx,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment