I feel the titlebar and map window color should be set/changed when the window title changes.
Looking at the code (with very little experience coding X11 apps) I
actually don't see why this doesn't happen now for map windows, but
obviously I'm missing something obvious! For titlebars I see some
commented out code in winutils.c:apply_window_name() that should do the
trick, but I can confirm it does not yet work as-is (or even if moved above.
Currently I can only convince CTWM to change these colors consistently
and in unison by restarting it -- i.e. so it sees the current title as
if it were the initial title. This is of course not very convenient.
I can change the map window color if I drag the little window to a
different workspace and drop it there (and then of course I can drag it
back where I wanted it in the first place). This also isn't very
convenient and it doesn't change the titlebar color.
In fact I haven't figured out any way to interactively convince CTWM to
change the titlebar color after the title changes.
Note that all the colors are set correctly as I expect based on the
window's initial title (thus why it "works" when restarting CTWM).
The main application I use where the window title changes, and where I
wan the titlebar and map window colors to change in unison, is (of
course) Xterm. Emacs would be another app which regularly changes its
title, but I don't have any special configuration for it.
You can see my current ~/.ctwmrc (and all related files) here:
https://github.com/robohack/dotfiles/
What might I try to make some progress on getting this to work?
--
Greg A. Woods <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgp6sJi7O2bfE.pgp
Description: OpenPGP Digital Signature
