]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/movetoedge.c
Bring helper windows when following a window.
[chaz/openbox] / openbox / actions / movetoedge.c
index 8a4044beb06edc4a58fe2b468c0c11b667b9ea08..5941bde97fa73979e0d8c2c89d2340d41152fc25 100644 (file)
@@ -13,7 +13,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
 static void     free_func(gpointer options);
 static gboolean run_func(ObActionsData *data, gpointer options);
 
-void action_movetofromedge_startup()
+void action_movetoedge_startup(void)
 {
     actions_register("MoveToEdge",
                      setup_func,
@@ -67,9 +67,9 @@ static gboolean run_func(ObActionsData *data, gpointer options)
 
         client_find_move_directional(data->client, o->dir, &x, &y);
         if (x != data->client->area.x || y != data->client->area.y) {
-            actions_client_move(data, FALSE);
-            client_move(data->client, x, y);
             actions_client_move(data, TRUE);
+            client_move(data->client, x, y);
+            actions_client_move(data, FALSE);
         }
     }
 
This page took 0.020366 seconds and 4 git commands to generate.