From 88e68dec21712c23bdfaf1d8fd5aa6c22bc44f2a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 5 May 2009 14:37:13 -0400 Subject: [PATCH] Let small windows appear at full size in the overlay if there is room Previously we forced all windows to shrink at least as much as the workspace itself did. Now we allow to shrink by a smaller amount (or not at all) if they'll still fit within their allotted slot. http://bugzilla.gnome.org/show_bug.cgi?id=571192 --- js/ui/workspaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index 150b66532..2febce000 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -431,7 +431,7 @@ Workspace.prototype = { let size = Math.max(clone.actor.width, clone.actor.height); let desiredSize = global.screen_width * fraction; - let scale = Math.min(desiredSize / size, 1.0); + let scale = Math.min(desiredSize / size, 1.0 / this.scale); Tweener.addTween(clone.actor, { x: xCenter - 0.5 * scale * clone.actor.width,