]> Sergey Matveev's repositories - st.git/commitdiff
set title before mapping window (thx Kamil Cholewiński).
authorAurélien Aptel <aurelien.aptel@gmail.com>
Sun, 22 May 2011 14:57:27 +0000 (16:57 +0200)
committerAurélien Aptel <aurelien.aptel@gmail.com>
Sun, 22 May 2011 14:57:27 +0000 (16:57 +0200)
st.c

diff --git a/st.c b/st.c
index 01ffa21c697e8da324a51b67d7c98ea3022e65f4..1d01925466eaff2f25e705bd2500486de740dd6d 100644 (file)
--- 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);
 }