Remove edge switching timer before adding it again.

This commit is contained in:
Mikael Magnusson 2007-08-04 03:57:58 +02:00
parent b6b9124ad0
commit f94fe1b847

View file

@ -526,9 +526,8 @@ static void do_edge_warp(gint x, gint y)
} }
if (dir != edge_warp_dir) { if (dir != edge_warp_dir) {
if (dir == (ObDirection)-1) cancel_edge_warp();
cancel_edge_warp(); if (dir != (ObDirection)-1) {
else {
edge_warp_odd = TRUE; /* switch on the first timeout */ edge_warp_odd = TRUE; /* switch on the first timeout */
ob_main_loop_timeout_add(ob_main_loop, ob_main_loop_timeout_add(ob_main_loop,
config_mouse_screenedgetime * 1000, config_mouse_screenedgetime * 1000,