aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2013-12-13 15:56:44 +0000
committerokan2013-12-13 15:56:44 +0000
commit22d7038270c5648ab3848b3d3b0f191fe4d68d0f (patch)
tree4ca7855dc5b8cfc372d02008da0a84fbf6c2bb03 /client.c
parentd5b1f447fbd3043ec0c045acaa885cfad4ce6174 (diff)
downloadcwm-22d7038270c5648ab3848b3d3b0f191fe4d68d0f.tar.gz
we need the save-set when re-exec'ing so as to not lose State on our hidden clients
Diffstat (limited to '')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
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 <sys/param.h>
@@ -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. */