window-list: Set metaWindow for single-window items when grouped
When grouping is enabled, items that are only have a single window associated are still expected to behave like ungrouped items. This includes activating windows by DND, which uses the metaWindow property on the hovered actor's _delegate, so make sure it is set on AppButtons in single-window mode as well. https://bugzilla.gnome.org/show_bug.cgi?id=693561
This commit is contained in:
@@ -239,11 +239,13 @@ const AppButton = new Lang.Class({
|
||||
|
||||
if (this._singleWindowTitle.visible) {
|
||||
if (!this._windowTitle) {
|
||||
this._windowTitle = new WindowTitle(windows[0]);
|
||||
this.metaWindow = windows[0];
|
||||
this._windowTitle = new WindowTitle(this.metaWindow);
|
||||
this._singleWindowTitle.child = this._windowTitle.actor;
|
||||
}
|
||||
} else {
|
||||
if (this._windowTitle) {
|
||||
this.metaWindow = null;
|
||||
this._singleWindowTitle.child = null;
|
||||
this._windowTitle = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user