From: Aurélien Aptel <aurelien.aptel@gmail.com>
Date: Sun, 22 May 2011 14:57:27 +0000 (+0200)
Subject: set title before mapping window (thx Kamil Cholewiński).
X-Git-Url: https://git.owens.tech/editable-focus.html/editable-focus.html/git?a=commitdiff_plain;h=6734de9b6e1e74e6c713a6a3e22322e80884828d;p=st.git

set title before mapping window (thx Kamil Cholewiński).
---

diff --git a/st.c b/st.c
index 01ffa21..1d01925 100644
--- a/st.c
+++ b/st.c
@@ -1632,9 +1632,9 @@ xinit(void) {
 		&(XColor){.red = 0xffff, .green = 0xffff, .blue = 0xffff},
 		&(XColor){.red = 0x0000, .green = 0x0000, .blue = 0x0000});
 
+	XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st");
 	XMapWindow(xw.dpy, xw.win);
 	xhints();
-	XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st");
 	XSync(xw.dpy, 0);
 }