]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Send WM_DELETE / kill window the right way (Thanks dothebart)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 9 Mar 2011 17:08:01 +0000 (18:08 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 9 Mar 2011 17:08:26 +0000 (18:08 +0100)
Fixes #336

src/tree.c

index ef254a8f122300cbaca98b18a7b51a6a2292c305..2d09dd917b373c36560fc1f91a613d1ab8bcd4e4 100644 (file)
@@ -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 */