[gnome-shell/wip/fmuellner/notification-redux+sass: 148/207] messageTray: Acceptable version of the horrible hack
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux+sass: 148/207] messageTray: Acceptable version of the horrible hack
- Date: Tue, 17 Feb 2015 17:06:27 +0000 (UTC)
commit 9dde332d41ed53c669e4d48ae8910f512ea26d1c
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 14 15:49:27 2015 +0100
messageTray: Acceptable version of the horrible hack
js/ui/messageTray.js | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 75444c6..f30e0e9 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1201,6 +1201,18 @@ const MessageTray = new Lang.Class({
this._onStatusChanged(status);
}));
+ global.stage.connect('enter-event', Lang.bind(this,
+ function(a, ev) {
+ // HACK: St uses ClutterInputDevice for hover tracking, which
+ // misses relevant X11 events when untracked actors are
+ // involved (read: the notification banner in normal mode),
+ // so fix up Clutter's view of the pointer position in
+ // that case.
+ let related = ev.get_related();
+ if (!related || this.actor.contains(related))
+ global.sync_pointer();
+ }));
+
this.actor = new St.Widget({ name: 'notification-container',
clip_to_allocation: true,
x_expand: true, y_expand: true,
@@ -1404,7 +1416,6 @@ const MessageTray = new Lang.Class({
},
_onNotificationHoverChanged: function() {
- global.sync_pointer();
if (this._notificationBin.hover == this._notificationHovered)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]