If anyone else is interested in this kind of border handling - this is my patch.
Not quite the same behavior as Sean's - I just wanted to set the border width to zero anytime there was only one client visible, so only need to add two lines to the tile function. I use this on a laptop, but it should work just as well with multiple monitors. Jeremiah On Fri, Mar 26, 2010 at 4:08 PM, Sean Whitton <s...@silentflame.com> wrote: > Hi, > > Attached is a patch that causes dwm to remove a window's border when the > bar is hidden, and the window is the only one visible - that is, when it > is the only client on the tag, or the tag is in monocle mode. It's > dependent on pertag, which I use, but it could easily be hacked to > remove this dependency. > > Issues: > > - If you move a window to another monitor, it won't get resized to fill > the extra borderpx*2 columns and rows until you switch to that > monitor. > - If you have more than one monitor, it'll be a lot harder to tell which > is focussed if borders have been removed on both. You'll have to look > for solid/hollow terminal cursors etc. This is just personal > preference, but is worth pointing out. > > I don't speak C so this patch is likely very code inefficient and ugly, > and it may well have other bugs. Do let me know if you find the time to > clean it up. > > S > > -- > Sean Whitton / <s...@silentflame.com> > OpenPGP KeyID: 0x3B6D411B > http://seanwhitton.com/ > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQIcBAEBAgAGBQJLrRRVAAoJEA9W0FU7bUEbsYIP/0U03/2aZQOPuDkkuhHk9bsp > NyLUCyVZTLNwKe8U8xrtgqEFuNrj7WWeNN5etJkA9HF1/aTKqqOiliNlylzk1I19 > ixMrAvn7770JGor64mgW2fK2UW31Cp5Fi6PdyRtbxwdm24qrG5qu0MaP3uPWjhrq > ZKQsAsneGRyPCebCdgarWW9rYGoguj4FowHEmUXLP9ulzpbpjsraR/xpsfSBcHF3 > PHCRXBKXZX+qqoT70Web1entF20LyyIjbcs5b0tV0ReCsHWFDnTbR2vp5FAc4mSr > VVb8Jis9o78a7qcpzFDN/e1PfytE2VOejEClaXmmEe5esk0wDpvGSn0SsYIABPVA > crNc8UKZiC9WPL1cUlPPfjwv5TpuJBfHHUWnMfSIeIIgAzwGU1PKgnyX2H21UCx4 > 1elsTwTTkEOd9Px92IvPoTSpzRGSmGrB1L4dhwmAPpaLtj3lQyo5NrtJP2xsVPDR > vm2mUDpMdUupX+PbBHgybBsuuW+2Ibuk40ZFXX8Nit3HJ/J5ySCvT9K2ZYEugJwP > sEjOqQ9s37oSR10m+Y0F9rC4kQ9VgjBLWVFNIFqrxs/fFOn7L6xvSIhkDYGGhBVb > qACOaWp7bx3HeV9aQ7EGgSUmA8X+9KvFbQPrOqqOy3RisKQorRE6tdbY6KuxGClm > SsexfEhT9uWgEsPRju78 > =TStd > -----END PGP SIGNATURE----- >
border.diff
Description: Binary data