]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #2134 from Airblader/bug-1761
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 29 Dec 2015 10:50:58 +0000 (11:50 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 29 Dec 2015 10:50:58 +0000 (11:50 +0100)
Properly validate containers when killing via criteria

src/con.c

index 591419e482b428a30901ea0d8c1c49253d1a1bac..24809efbbf99f696f091ba8b67b9b4983d0a6f52 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -1070,14 +1070,14 @@ static bool _con_move_to_con(Con *con, Con *target, bool behind_focused, bool fi
             startup_sequence_delete(sequence);
     }
 
-    CALL(parent, on_remove_child);
-
     /* 9. If the container was marked urgent, move the urgency hint. */
     if (urgent) {
         workspace_update_urgent_flag(source_ws);
         con_set_urgency(con, true);
     }
 
+    CALL(parent, on_remove_child);
+
     ipc_send_window_event("move", con);
     return true;
 }