invert vertical_workspaces cases (we want to go down each column if it's

2003-01-05  Havoc Pennington  <hp@pobox.com>

	* src/screen.c (meta_screen_calc_workspace_layout): invert
	vertical_workspaces cases (we want to go down each column if
	it's vertical, and across each row if horizontal). Patch
	from readams@hmc.edu
This commit is contained in:
Havoc Pennington 2003-01-06 02:59:19 +00:00 committed by Havoc Pennington
parent a8f93c454a
commit 036747fba5
2 changed files with 56 additions and 49 deletions

View File

@ -1,3 +1,10 @@
2003-01-05 Havoc Pennington <hp@pobox.com>
* src/screen.c (meta_screen_calc_workspace_layout): invert
vertical_workspaces cases (we want to go down each column if
it's vertical, and across each row if horizontal). Patch
from readams@hmc.edu
2003-01-05 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Macedonian (mk) to ALL_LINGUAS

View File

@ -1684,130 +1684,130 @@ meta_screen_calc_workspace_layout (MetaScreen *screen,
{
case META_SCREEN_TOPLEFT:
if (screen->vertical_workspaces)
{
r = 0;
while (r < rows)
{
c = 0;
while (c < cols)
{
r = 0;
while (r < rows)
{
grid[r*cols+c] = i;
++i;
++c;
}
++r;
}
++c;
}
}
else
{
c = 0;
while (c < cols)
{
r = 0;
while (r < rows)
{
c = 0;
while (c < cols)
{
grid[r*cols+c] = i;
++i;
++r;
}
++c;
}
++r;
}
}
break;
case META_SCREEN_TOPRIGHT:
if (screen->vertical_workspaces)
{
r = 0;
while (r < rows)
{
c = cols - 1;
while (c >= 0)
{
r = 0;
while (r < rows)
{
grid[r*cols+c] = i;
++i;
--c;
}
++r;
}
--c;
}
}
else
{
c = cols - 1;
while (c >= 0)
{
r = 0;
while (r < rows)
{
c = cols - 1;
while (c >= 0)
{
grid[r*cols+c] = i;
++i;
++r;
}
--c;
}
++r;
}
}
break;
case META_SCREEN_BOTTOMLEFT:
if (screen->vertical_workspaces)
{
r = rows - 1;
while (r >= 0)
{
c = 0;
while (c < cols)
{
r = rows - 1;
while (r >= 0)
{
grid[r*cols+c] = i;
++i;
++c;
}
--r;
}
++c;
}
}
else
{
c = 0;
while (c < cols)
{
r = rows - 1;
while (r >= 0)
{
c = 0;
while (c < cols)
{
grid[r*cols+c] = i;
++i;
--r;
}
++c;
}
--r;
}
}
break;
case META_SCREEN_BOTTOMRIGHT:
if (screen->vertical_workspaces)
{
r = rows - 1;
while (r >= 0)
{
c = cols - 1;
while (c >= 0)
{
r = rows - 1;
while (r >= 0)
{
grid[r*cols+c] = i;
++i;
--c;
}
--r;
}
--c;
}
}
else
{
c = cols - 1;
while (c >= 0)
{
r = rows - 1;
while (r >= 0)
{
c = cols - 1;
while (c >= 0)
{
grid[r*cols+c] = i;
++i;
--r;
}
--c;
}
--r;
}
}
break;
}
@ -1852,7 +1852,7 @@ meta_screen_calc_workspace_layout (MetaScreen *screen,
r = 0;
while (r < layout->rows)
{
meta_verbose ("");
meta_verbose (" ");
meta_push_no_msg_prefix ();
c = 0;
while (c < layout->cols)