[gnome-shell] grabHelper: Use a round trip for focusing the default window



commit 8301acd4d65b6d97c32b0adab7af46180ea21d53
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 11 17:24:52 2013 -0400

    grabHelper: Use a round trip for focusing the default window
    
    We may release the focus grab at any time, so it's not guaranteed
    we'll be in event processing. In particular, hovering over and out
    of a notification will cause this to happen, as the notification
    is hidden on a timeout.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695659

 js/ui/grabHelper.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 1543c14..2547da6 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -248,7 +248,7 @@ const GrabHelper = new Lang.Class({
                 global.set_stage_input_mode(Shell.StageInputMode.FOCUSED);
         }
 
-        global.screen.focus_default_window(global.get_current_time());
+        global.screen.focus_default_window(global.display.get_current_time_roundtrip());
     },
 
     // ignoreRelease:


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