Hi all,

In the current version of st, when invoked with the -t option, it
would map the window before setting its title, which would prevent dwm
(or any other dynamic wm) from matching its rules against it. Here's a
patch that fixed the thing for me:

diff -r 1eb3e1b6a8d0 st.c
--- a/st.c      Sat May 14 17:47:37 2011 +0200
+++ b/st.c      Fri May 20 18:59:38 2011 +0300
@@ -1632,9 +1632,9 @@
                &(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);
 }


Thanks,
Kamil

Reply via email to