]> Dogcows Code - chaz/openbox/commitdiff
Remove edge switching timer before adding it again.
authorMikael Magnusson <mikachu@comhem.se>
Sat, 4 Aug 2007 01:57:58 +0000 (03:57 +0200)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 4 Aug 2007 11:21:25 +0000 (13:21 +0200)
openbox/moveresize.c

index bfa0feb0905e79dfa189aa5c3c27959d1dc52ca7..1a8550a9784d496d29fb36227114a022f1698675 100644 (file)
@@ -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,
This page took 0.023567 seconds and 4 git commands to generate.