From 62c28482112791b41efa3472c05a4e1588aebdb7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 18 Feb 2009 22:44:14 +0100 Subject: [PATCH] Document save set --- src/mainx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainx.c b/src/mainx.c index b8a8da19..229e84e4 100644 --- a/src/mainx.c +++ b/src/mainx.c @@ -171,7 +171,9 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, /* Yo dawg, I heard you like windows, so I create a window around your window… */ new->frame = create_window(conn, framerect, XCB_WINDOW_CLASS_INPUT_OUTPUT, mask, values); - /* TODO: document */ + /* Put the client inside the save set. Upon termination (whether killed or normal exit + does not matter) of the window manager, these clients will be correctly reparented + to their most closest living ancestor (= cleanup) */ xcb_change_save_set(conn, XCB_SET_MODE_INSERT, child); /* Generate a graphics context for the titlebar */ -- 2.39.5