[gnome-shell] Workspace: Set a maximum scale for window clones



commit 64baea16935376ec5c851cd6b791401691b86e19
Author: Vit Stanislav <slaweet seznam cz>
Date:   Sun Jan 15 15:30:59 2012 +0100

    Workspace: Set a maximum scale for window clones
    
    If there's a single small window (e.g. empathy chat) in the overview, it
    looks usable, because it's as big as outside of the overview, but when
    you start to type, overview search is launched, which is confusing.
    
    Fix that by setting maximum scale for window clones to 0.7
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646704

 js/ui/workspace.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index fffa7c3..519e9b8 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -23,6 +23,8 @@ const WINDOW_DND_SIZE = 256;
 
 const SCROLL_SCALE_AMOUNT = 100 / 5;
 
+const WINDOW_CLONE_MAXIMUM_SCALE = 0.7;
+
 const LIGHTBOX_FADE_TIME = 0.1;
 const CLOSE_BUTTON_FADE_TIME = 0.1;
 
@@ -964,7 +966,7 @@ const Workspace = new Lang.Class({
 
         let scale = Math.min((width - buttonOuterWidth) / rect.width,
                              (height - buttonOuterHeight - captionHeight) / rect.height,
-                             1.0);
+                             WINDOW_CLONE_MAXIMUM_SCALE);
 
         x = Math.floor(x + (width - scale * rect.width) / 2);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]