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;
|
||||
|
||||
if (windowInfo.metaWindow.showing_on_its_workspace()) {
|
||||
workspaceBox.x1 = child.boundingBox.x - this._workarea.x;
|
||||
workspaceBox.x2 = workspaceBox.x1 + child.boundingBox.width;
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user