Implement the window::close event

The window::close event should be emitted when a window closes.
This commit is contained in:
Tony Crisci
2014-06-19 03:17:52 -04:00
committed by Michael Stapelberg
parent 0df172fd05
commit 25ca78bbba
3 changed files with 54 additions and 0 deletions

View File

@ -255,6 +255,7 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool
* X11 Errors are returned when the window was already destroyed */
add_ignore_event(cookie.sequence, 0);
}
ipc_send_window_event("close", con);
FREE(con->window->class_class);
FREE(con->window->class_instance);
i3string_free(con->window->name);