Hi Peter, I reviewed your patch and concluded I can't apply it as is, because focus() would be called twice, once on the unmapped window, and then on again.
I'm thinking about modifying your patch to avoid this. Cheers, garbeam PS: On Sunday there is dwm's official 5th birthday and I consider dedicating the 5.9 release for this purpose :)