[mutter/wip/carlosg/move-pointer-onscreen: 2/8] backends: Do not try to move pointer onscreen in common code




commit 3db89d10bc9c05ff9c303a2f262c5d0c2617ed3a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 14 20:32:37 2022 +0100

    backends: Do not try to move pointer onscreen in common code
    
    This is now handled inside the input thread in the native backend,
    and X11 has always done something similar to this. This common code
    is no longer necessary.

 src/backends/meta-backend.c | 14 --------------
 1 file changed, 14 deletions(-)
---
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
index 369b03b1ef..ddc38abea5 100644
--- a/src/backends/meta-backend.c
+++ b/src/backends/meta-backend.c
@@ -357,20 +357,6 @@ meta_backend_monitors_changed (MetaBackend *backend)
   graphene_point_t point;
 
   meta_backend_sync_screen_size (backend);
-
-  if (clutter_seat_query_state (seat, device, NULL, &point, NULL))
-    {
-      /* If we're outside all monitors, warp the pointer back inside */
-      if ((!meta_monitor_manager_get_logical_monitor_at (monitor_manager,
-                                                         point.x, point.y) ||
-           !priv->is_pointer_position_initialized) &&
-          !meta_monitor_manager_is_headless (monitor_manager))
-        {
-          reset_pointer_position (backend);
-          priv->is_pointer_position_initialized = TRUE;
-        }
-    }
-
   update_cursors (backend);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]