Codebase list gnome-shell-extension-appindicator / 1f5ec6c
indicatorStatusIcon: Use XAyatanaSecondaryActivate passing timestamp This is not available in all the implementations, so if that's not the case just fallback to default activation. Marco Trevisan (TreviƱo) 2 years ago
3 changed file(s) with 12 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
373373 this._proxy.ActivateRemote(x, y);
374374 }
375375
376 secondaryActivate(x, y) {
377 this._proxy.SecondaryActivateRemote(x, y);
376 secondaryActivate(timestamp, x, y) {
377 this._proxy.XAyatanaSecondaryActivateRemote(timestamp, (_, e) => {
378 if (e && e.matches(Gio.DBusError, Gio.DBusError.UNKNOWN_METHOD))
379 this._proxy.SecondaryActivateRemote(x, y);
380 else if (e)
381 logError(e);
382 });
378383 }
379384
380385 scroll(dx, dy) {
249249 // if middle mouse button clicked send SecondaryActivate dbus event and do not show appindicator menu
250250 if (buttonEvent.button === 2) {
251251 Main.panel.menuManager._closeMenu(true, Main.panel.menuManager.activeMenu);
252 this._indicator.secondaryActivate(buttonEvent.x, buttonEvent.y);
252 this._indicator.secondaryActivate(buttonEvent.time, buttonEvent.x, buttonEvent.y);
253253 return Clutter.EVENT_STOP;
254254 }
255255
6969 <arg name="y" type="i" direction="in"/>
7070 </method>
7171
72 <method name="XAyatanaSecondaryActivate">
73 <arg name="timestamp" type="u" direction="in"/>
74 </method>
75
7276 <method name="Scroll">
7377 <arg name="delta" type="i" direction="in"/>
7478 <arg name="orientation" type="s" direction="in"/>