JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Let scrotwm adjust the font size on xterms as it squishes them in tiling
authorRyan McBride <mcbride@countersiege.com>
Sat, 7 Feb 2009 19:49:58 +0000 (19:49 +0000)
committerRyan McBride <mcbride@countersiege.com>
Sat, 7 Feb 2009 19:49:58 +0000 (19:49 +0000)
commitbbb499e87a8c905214478e1badd67465701fc5cb
tree1f05acc7017045359a1a2c726e744f9d6ee36b32
parent4b709171eea2e07645115ba35b91467688ae6051
Let scrotwm adjust the font size on xterms as it squishes them in tiling
mode to keep the terminal width above a certan size (set with 'term_width'
in the config file.

We do this by sending the default font size change keystrokes to the xterm
in question. Because xterm does not accept 'synthetic' keystroke events by
default, and we don't want to force users to enable acceptSendEvents for
security reasons, hook XtAppNextEvent in the LD_PRELOAD hack, and clear
the send_event flag on the events in question. CAVEAT: Only works if xterm
is not setuid/setgid.
lib/swm_hack.c
scrotwm.1
scrotwm.c