From 354112fb415ca174c99b59d5eb76e4c8006ee5ee Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 6 Aug 2009 15:14:57 -0400 Subject: [PATCH] Tweak sizing of windows in overview Tweak arrangements with 2,3,4,5 windows in a desktop so: - Windows are a bit bigger - All windows for 5 windows are equally sized instead of making the windows in the bottom row larger This does cause some more problems with tall windows overlapping or running off the edge of the workspace, but it's an overall small improvement to the behavior. --- js/ui/workspaces.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index 7da0e40ec..2325b5abb 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -36,10 +36,10 @@ FRAME_COLOR.from_pixel(0xffffffff); // is relative to the width of the workspace. const POSITIONS = { 1: [[0.5, 0.5, 0.8]], - 2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]], - 3: [[0.25, 0.25, 0.33], [0.75, 0.25, 0.33], [0.5, 0.75, 0.33]], - 4: [[0.25, 0.25, 0.33], [0.75, 0.25, 0.33], [0.75, 0.75, 0.33], [0.25, 0.75, 0.33]], - 5: [[0.165, 0.25, 0.28], [0.495, 0.25, 0.28], [0.825, 0.25, 0.28], [0.25, 0.75, 0.4], [0.75, 0.75, 0.4]] + 2: [[0.25, 0.5, 0.45], [0.75, 0.5, 0.45]], + 3: [[0.25, 0.25, 0.45], [0.75, 0.25, 0.45], [0.5, 0.75, 0.45]], + 4: [[0.25, 0.25, 0.45], [0.75, 0.25, 0.45], [0.75, 0.75, 0.45], [0.25, 0.75, 0.45]], + 5: [[0.165, 0.25, 0.30], [0.495, 0.25, 0.30], [0.825, 0.25, 0.30], [0.25, 0.75, 0.30], [0.75, 0.75, 0.30]] }; // Spacing between workspaces. At the moment, the same spacing is used