[mutter/wip/carlosg/drop-device-idle-monitors] core: Do not update idle times for slave devices



commit e37a87bde246bb605942b58c5932be5465659b5f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Feb 5 16:42:26 2020 +0100

    core: Do not update idle times for slave devices
    
    Those go nowhere, so just avoid doing this.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1039

 src/core/events.c | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 6b57f4f5f..5f5fc6863 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -118,17 +118,7 @@ handle_idletime_for_event (const ClutterEvent *event)
     return;
 
   core_monitor = meta_idle_monitor_get_core ();
-  device_monitor = meta_idle_monitor_get_for_device (device);
-
   meta_idle_monitor_reset_idletime (core_monitor);
-  meta_idle_monitor_reset_idletime (device_monitor);
-
-  source_device = clutter_event_get_source_device (event);
-  if (source_device != device)
-    {
-      device_monitor = meta_idle_monitor_get_for_device (source_device);
-      meta_idle_monitor_reset_idletime (device_monitor);
-    }
 }
 
 static gboolean


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