From 74b90cd83ffb2cdd532d2c527cd40d20963bb32e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 9 Mar 2011 18:08:01 +0100 Subject: [PATCH] Bugfix: Send WM_DELETE / kill window the right way (Thanks dothebart) Fixes #336 --- src/tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.39.5