[dev] [st] maps window before setting the title, confuses dwm's matching

From: Kamil Cholewiński <harry666t_AT_gmail.com>
Date: Fri, 20 May 2011 19:06:30 +0300

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
Received on Fri May 20 2011 - 18:06:30 CEST

This archive was generated by hypermail 2.2.0 : Fri May 20 2011 - 18:12:03 CEST