From: Michael Stapelberg Date: Wed, 9 Mar 2011 17:08:01 +0000 (+0100) Subject: Bugfix: Send WM_DELETE / kill window the right way (Thanks dothebart) X-Git-Tag: tree-pr3~144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74b90cd83ffb2cdd532d2c527cd40d20963bb32e;p=i3%2Fi3 Bugfix: Send WM_DELETE / kill window the right way (Thanks dothebart) Fixes #336 --- diff --git a/src/tree.c b/src/tree.c index ef254a8f..2d09dd91 100644 --- a/src/tree.c +++ b/src/tree.c @@ -123,9 +123,10 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) { } if (con->window != NULL) { - if (kill_window) + if (kill_window) { x_window_kill(con->window->id); - else { + return; + } else { /* un-parent the window */ xcb_reparent_window(conn, con->window->id, root, 0, 0); /* TODO: client_unmap to set state to withdrawn */