Improve overlay mode's window scaling

Add a layout for 5 windows and slightly increase the scale factor
for 3 and 4 windows.

Patch from Natan Yellin
http://bugzilla.gnome.org/show_bug.cgi?id=561947

svn path=/trunk/; revision=81
This commit is contained in:
Owen Taylor 2008-11-23 04:23:34 +00:00
parent 1fb2585d8f
commit 1d1028adef

View File

@ -41,8 +41,9 @@ const WINDOW_OPACITY = 0.9 * 255;
const POSITIONS = { const POSITIONS = {
1: [[0.5, 0.5, 0.8]], 1: [[0.5, 0.5, 0.8]],
2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]], 2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]],
3: [[0.2, 0.33, 0.3], [0.5, 0.67, 0.3], [0.8, 0.33, 0.3]], 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.3], [0.75, 0.25, 0.3], [0.75, 0.75, 0.3], [0.25, 0.75, 0.3]] 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]]
}; };
function Sideshow(width) { function Sideshow(width) {