titlebar and map window color should be reset when title changes
"Greg A. Woods" <[email protected]> Tue, 12 Nov 2024 15:20:25 -0800
| Newsgroups | gmane.comp.window-managers.ctwm |
|---|---|
| Organization | Planix, Inc. |
| Message-ID | <[email protected]> |
--pgp-sign-Multipart_Tue_Nov_12_15:20:14_2024-1 Content-Type: text/plain; charset=US-ASCII 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]> --pgp-sign-Multipart_Tue_Nov_12_15:20:14_2024-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCZzPitAAKCRBmfXG3eL/0 f3BkAKCQbYTNevrz2hMRCRqsEtoOuoAj4wCdGwR6F6Sw+eOXGMEXBrGyXr2m5sQ= =muho -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Nov_12_15:20:14_2024-1--