workspace: Handle minimized windows in layout
The new layout manager always uses the window's regular size and position for the floating state, but the preview of minimized windows should be hidden instead. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1345
This commit is contained in:
parent
c26860dcb7
commit
ff89693998
@ -585,10 +585,17 @@ var WorkspaceLayout = GObject.registerClass({
|
|||||||
|
|
||||||
child.slotId = index;
|
child.slotId = index;
|
||||||
|
|
||||||
workspaceBox.x1 = child.boundingBox.x - this._workarea.x;
|
if (windowInfo.metaWindow.showing_on_its_workspace()) {
|
||||||
workspaceBox.x2 = workspaceBox.x1 + child.boundingBox.width;
|
workspaceBox.x1 = child.boundingBox.x - this._workarea.x;
|
||||||
workspaceBox.y1 = child.boundingBox.y - this._workarea.y;
|
workspaceBox.x2 = workspaceBox.x1 + child.boundingBox.width;
|
||||||
workspaceBox.y2 = workspaceBox.y1 + child.boundingBox.height;
|
workspaceBox.y1 = child.boundingBox.y - this._workarea.y;
|
||||||
|
workspaceBox.y2 = workspaceBox.y1 + child.boundingBox.height;
|
||||||
|
} else {
|
||||||
|
workspaceBox.set_origin(this._workarea.x, this._workarea.y);
|
||||||
|
workspaceBox.set_size(0, 0);
|
||||||
|
|
||||||
|
child.opacity = this._stateAdjustment.value * 255;
|
||||||
|
}
|
||||||
|
|
||||||
workspaceBox.scale(allocationScale);
|
workspaceBox.scale(allocationScale);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user