Configuration Information [Automatically generated, do not change]:
uname: FreeBSD whitebox 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
compiler flags: cc -Wall -Wno-implicit-int -O2 -pipe -fno-strict-aliasing
-I/usr/local/include
FVWM Version: 2.6.5
FVWM_MODULEDIR: /usr/local/libexec/fvwm/2.6.5
FVWM_DATADIR: /usr/local/share/fvwm
FVWM_USERDIR: /home/victor/.fvwm
Description:
Hello. When using escape sequences to set window and icon titles from
xterm and rxvt, I initially saw that the window title sequence would change the
icon title. My rc file had 'Style "*" IconTitleFormat %i', which reflected the
behavior I expected when sending the icon title sequence. I was previously
running 2.5.27 without issue. To be thorough, I initially tested the behavior
with the following settings in FVWM Console:
Style "*" IconTitleFormat %i (%n)
Style "*" TitleFormat %n (%i)
With the TitleFormat string set as above, the window manager would crash when
opening an new window. I'd also tested this in my rc file, which would cause
fvwm to core dump upon login.
During testing, I noticed also that the order of events for setting the window
and icon title affected the results (noted below), and that xterm and rxvt also
had different results. (I'm using xterm 297, and rxvt v2.6.4) After testing
fvwm 2.6.5, I downloaded 2.7.0 (which at the time, I thought was a later
release, however it seems to be closer to 2.6.2, both of which behave as
expected, so those [2.7.0] results are not included here), as well as 2.6.2,
2.6.3, and 2.6.4, and tested all those versions with just the IconTitleFormat
style set as above and rxvt (xterm results for the listed other versions of
fvwm are the same as rxvt).
>From what I can tell, the issues were introduced changes in 2.6.3, however the
typical behavior of the window and icon titles in this version would not
necessarily illuminate the issue without looking at the additional
placeholders.
Because the introduction of the issue has substantial traces in 2.6.3 and
2.6.4, and the testing has taken a bit of time to be certain, I've not yet
looked at the code enough to suggest a working fix. Although, since the
initial 2.6.5 version was installed from ports, I did try just using the source
without the port, (which produced the same results), as well as using the diff
to patch the ports-tree version to a working version to make sure I didn't miss
any local changes, and narrow down the issue to post 2.6.2 definitively.
I don't currently subscribe to the list, however you can reach me at the sending
address.
BTW, this issue aside, fvwm is awesome, and I've used it for years. Thanks for
all the great work!
-Victor
Repeat-By:
After starting xterm and rxvt windows, set the following in FVWM Console
(opening new windows once the second string is set will crash fvwm)
Style "*" IconTitleFormat %i (%n)
Style "*" TitleFormat %n (%i)
The following chart shows the commands run in the windows, with the resulting
values as observed in the title bars and icon label.
Terminal Command Title %n Title %i Icon %i Icon %n
2.6.5
Xterm printf "\033]0;All\007" All All All All
printf "\033]1;Icon\007" All All Icon All
printf "\033]2;Title\007" Title Icon Title Title
printf "\033]0;All\007" All All All All
printf "\033]2;Title\007" Title Untitled Title Title
printf "\033]1;Icon\007" Title Untitled Icon Title
Rxvt printf "\033]0;All\007" All Untitled All All
printf "\033]1;Icon\007" All Untitled Icon All
printf "\033]2;Title\007" Title Icon Title Title
printf "\033]0;All\007" All Untitled All All
printf "\033]2;Title\007" Title Untitled Title Title
printf "\033]1;Icon\007" Title Untitled Icon Title
(* Not a test, just a comparative list of expected values for reference)
Expected printf "\033]0;All\007" All All All All
printf "\033]1;Icon\007" All Icon Icon All
printf "\033]2;Title\007" Title Icon Icon Title
printf "\033]0;All\007" All All All All
printf "\033]2;Title\007" Title All All Title
printf "\033]1;Icon\007" Title Icon Icon Title
2.6.2 Works as expected (IconTitleFormat not yet supported)
(Rxvt) printf "\033]0;All\007" All All
printf "\033]1;Icon\007" All Icon
printf "\033]2;Title\007" Title Icon
printf "\033]0;All\007" All All
printf "\033]2;Title\007" Title All
printf "\033]1;Icon\007" Title Icon
2.6.3 Normal titles work as expected, however icon %n is broken, and fvwm
crashes with TitleFormat set as above, so title %n not tested here
(Rxvt) printf "\033]0;All\007" All All All
printf "\033]1;Icon\007" All Icon All
printf "\033]2;Title\007" Title Icon All
printf "\033]0;All\007" All All All
printf "\033]2;Title\007" Title All All
printf "\033]1;Icon\007" Title Icon Title
2.6.4 Normal title behavior broken consistent with 2.6.5, title %n not
tested due to crashing issue
(Rxvt) printf "\033]0;All\007" All All All
printf "\033]1;Icon\007" All Icon All
printf "\033]2;Title\007" Title Title Title
printf "\033]0;All\007" All All All
printf "\033]2;Title\007" Title Title Title
printf "\033]1;Icon\007" Title Icon Title