]> git.sur5r.net Git - i3/i3/blobdiff - src/tree.c
implement delayed urgency hint reset
[i3/i3] / src / tree.c
index 321bc78a5951b2b9fa13c78819301f53049b5d49..4f34946cc58c13e654c8ad031e68d859f65dde6d 100644 (file)
@@ -255,6 +255,15 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool
     x_con_kill(con);
 
     con_detach(con);
+
+    /* disable urgency timer, if needed */
+    if (con->urgency_timer != NULL) {
+        DLOG("Removing urgency timer of con %p\n", con);
+        workspace_update_urgent_flag(con_get_workspace(con));
+        ev_timer_stop(main_loop, con->urgency_timer);
+        FREE(con->urgency_timer);
+    }
+
     if (con->type != CT_FLOATING_CON) {
         /* If the container is *not* floating, we might need to re-distribute
          * percentage values for the resized containers. */