From f94fe1b84749ff876dbb6643379dc3db5ad8941a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 4 Aug 2007 03:57:58 +0200 Subject: [PATCH] Remove edge switching timer before adding it again. --- openbox/moveresize.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openbox/moveresize.c b/openbox/moveresize.c index bfa0feb0..1a8550a9 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -526,9 +526,8 @@ static void do_edge_warp(gint x, gint y) } if (dir != edge_warp_dir) { - if (dir == (ObDirection)-1) - cancel_edge_warp(); - else { + cancel_edge_warp(); + if (dir != (ObDirection)-1) { edge_warp_odd = TRUE; /* switch on the first timeout */ ob_main_loop_timeout_add(ob_main_loop, config_mouse_screenedgetime * 1000, -- 2.45.2