[AppIcon] compute the sorted window list even if not doing the menu
https://bugzilla.gnome.org/show_bug.cgi?id=597498
This commit is contained in:
parent
3bf88b8988
commit
e5efecd2bd
@ -66,21 +66,20 @@ AppIcon.prototype = {
|
|||||||
this.actor._delegate = this;
|
this.actor._delegate = this;
|
||||||
this.highlight_border_color = APPICON_DEFAULT_BORDER_COLOR;
|
this.highlight_border_color = APPICON_DEFAULT_BORDER_COLOR;
|
||||||
|
|
||||||
if (menuType != MenuType.NONE) {
|
this.windows = Shell.AppMonitor.get_default().get_windows_for_app(appInfo.get_id());
|
||||||
this.windows = Shell.AppMonitor.get_default().get_windows_for_app(appInfo.get_id());
|
for (let i = 0; i < this.windows.length; i++) {
|
||||||
for (let i = 0; i < this.windows.length; i++) {
|
this.windows[i].connect('notify::user-time', Lang.bind(this, this._resortWindows));
|
||||||
this.windows[i].connect('notify::user-time', Lang.bind(this, this._resortWindows));
|
}
|
||||||
}
|
this._resortWindows();
|
||||||
this._resortWindows();
|
|
||||||
|
|
||||||
|
if (menuType != MenuType.NONE) {
|
||||||
this.actor.connect('button-press-event', Lang.bind(this, this._updateMenuOnButtonPress));
|
this.actor.connect('button-press-event', Lang.bind(this, this._updateMenuOnButtonPress));
|
||||||
this.actor.connect('notify::hover', Lang.bind(this, this._updateMenuOnHoverChanged));
|
this.actor.connect('notify::hover', Lang.bind(this, this._updateMenuOnHoverChanged));
|
||||||
this.actor.connect('activate', Lang.bind(this, this._updateMenuOnActivate));
|
this.actor.connect('activate', Lang.bind(this, this._updateMenuOnActivate));
|
||||||
|
|
||||||
this._menuTimeoutId = 0;
|
this._menuTimeoutId = 0;
|
||||||
this._menu = null;
|
this._menu = null;
|
||||||
} else
|
}
|
||||||
this.windows = [];
|
|
||||||
|
|
||||||
let iconBox = new Big.Box({ orientation: Big.BoxOrientation.VERTICAL,
|
let iconBox = new Big.Box({ orientation: Big.BoxOrientation.VERTICAL,
|
||||||
x_align: Big.BoxAlignment.CENTER,
|
x_align: Big.BoxAlignment.CENTER,
|
||||||
|
Loading…
Reference in New Issue
Block a user