From 22d7038270c5648ab3848b3d3b0f191fe4d68d0f Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 13 Dec 2013 15:56:44 +0000 Subject: we need the save-set when re-exec'ing so as to not lose State on our hidden clients --- client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 92c52f1..1dc6c28 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.161 2013/12/13 14:40:52 okan Exp $ + * $OpenBSD: client.c,v 1.162 2013/12/13 15:56:44 okan Exp $ */ #include @@ -103,6 +103,8 @@ client_init(Window win, struct screen_ctx *sc, int mapped) XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask | PropertyChangeMask | KeyReleaseMask); + XAddToSaveSet(X_Dpy, cc->win); + client_transient(cc); /* Notify client of its configuration. */ -- cgit v1.2.3-2-gb3c3