2006-09-15  Brian Cameron <brian.cameron@sun.com>

	Fixes #356075

	* main.c (apply_config, revert_config): make sure we never pass
	negative values for the rates.
This commit is contained in:
Brian Cameron 2006-09-15 11:08:41 +00:00 committed by Rodrigo Moya
parent 6534f723c6
commit f21f40313f
2 changed files with 9 additions and 2 deletions

View file

@ -229,7 +229,7 @@ apply_config (struct DisplayInfo *info)
gdk_x11_drawable_get_xid (GDK_DRAWABLE (root_window)),
new_res,
new_rot,
new_rate,
new_rate > 0 ? new_rate : 0,
GDK_CURRENT_TIME);
}
}
@ -277,7 +277,7 @@ revert_config (struct DisplayInfo *info)
gdk_x11_drawable_get_xid (GDK_DRAWABLE (root_window)),
screen_info->old_size,
screen_info->old_rotation,
screen_info->old_rate,
screen_info->old_rate > 0 ? screen_info->old_rate : 0,
GDK_CURRENT_TIME);
}