From 61a8bc81ecf16182089e07d9c532c4d0e75e1873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20B=C3=BCrk?= Date: Sun, 27 Dec 2015 18:08:30 -0500 Subject: [PATCH] Move urgent flag before killing the parent. We need to move the urgent flag when moving a container across workspaces before calling on_remove_child on the parent in order to avoid a crash. fixes #2128 --- src/con.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/con.c b/src/con.c index 64dbec69..66bba864 100644 --- a/src/con.c +++ b/src/con.c @@ -1040,14 +1040,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; }