[gnome-shell/gnome-3-2] messageTray: don't steal focus when popping under the pointer
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-2] messageTray: don't steal focus when popping under the pointer
- Date: Wed, 18 Jan 2012 15:31:53 +0000 (UTC)
commit d85a16589bb9f3cc8ad4aab59c3018c0f83f6bd9
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Nov 2 18:41:46 2011 +0000
messageTray: don't steal focus when popping under the pointer
We must look for the actor under the pointer in the whole message tray and not
just in the notification. This will avoid us to capture focus when a
notification comes up with the pointer on the whole tray area.
https://bugzilla.gnome.org/show_bug.cgi?id=661358
js/ui/messageTray.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 75eb9f9..8f6011a 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1832,7 +1832,7 @@ MessageTray.prototype = {
// automatically. Instead, the user is able to expand the notification by mousing away from it and then
// mousing back in. Because this is an expected action, we set the boolean flag that indicates that a longer
// timeout should be used before popping down the notification.
- if (this._notificationBin.contains(actorAtShowNotificationPosition)) {
+ if (this.actor.contains(actorAtShowNotificationPosition)) {
this._useLongerTrayLeftTimeout = true;
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]