fix off-by-one, patch from readams@hmc.edu, #102806

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

	* src/screen.c (update_num_workspaces): fix off-by-one, patch from
	readams@hmc.edu, #102806
This commit is contained in:
Havoc Pennington
2003-01-08 04:23:18 +00:00
committed by Havoc Pennington
parent 878d6df404
commit b619f9baa8
2 changed files with 7 additions and 1 deletions

View File

@ -950,7 +950,7 @@ update_num_workspaces (MetaScreen *screen)
{
MetaWorkspace *w = tmp->data;
if (i > new_num)
if (i >= new_num)
extras = g_list_prepend (extras, w);
else
last_remaining = w;