[gnome-shell/wip/carlosg/sync-pointer-in-mutter: 6/7] messageTray: Drop hack to keep track of X11




commit e71e47629140b5775a7906daf261e68d41365c00
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Dec 18 15:11:34 2020 +0100

    messageTray: Drop hack to keep track of X11
    
    This is here to cater for lost events while the pointer wanders
    into untracked shell UI (thus not part of the input region under
    X11). Let mutter handle this situation instead.

 js/ui/messageTray.js | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 546079f9bb..ab3c751271 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -854,17 +854,6 @@ var MessageTray = GObject.registerClass({
             this._onStatusChanged(status);
         });
 
-        global.stage.connect('enter-event', (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.contains(related))
-                global.sync_pointer();
-        });
-
         let constraint = new Layout.MonitorConstraint({ primary: true });
         Main.layoutManager.panelBox.bind_property('visible',
                                                   constraint, 'work-area',


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