Thanks for the response
> > or is this just a stupid design flaw in google-chrome for which
> > there is no user-workaround?
>
> History suggests... :)
Yeah... as I feared.
> > unless there's some way ctwm can be made to give each window a fixed
> > label, shown in titlebar and used in iconmanager.
>
> Not impossible in principle, but it would take some doing. Even more,
> if you wanted a UI for it...
Yes. If I were younger, fluent in C, and had more time to spare, I thought
it would require something like the following list of additions:
-- a new field: WindowLabel for each window, undef by default
set and used as defined below.
-- a new function f.setWindowLabel
When invoked, it invites user to click on a window, then displays a panel
with a text field into which text for a label can be typed, to be set as
WindowLabel for that window. (The consequences are described below.)
f.setWindowLabel overwrites WindowLabel for a window if previously set.
If NONE is typed then the window label field for that window is cleared,
and the behaviour of that window returns to the default, i.e. show standard
window name in title bar.
-- a new ternary global option
[Not sure whether this should be global or per window. Global is much
simpler to implement?]
ShowWindowLabels
ShowWindowLabelsOnly
NoShowWindowLabels [default]
(or a true/false/both setting for ShowWindowLabels?)
The first option will cause the title bar for any window with a label to
show the window label to the left of the current window title.
If a new tab is selected with a different title the titlebar will change
accordingly, showing the same window label and the new tab title.
ShowWindowLabelsOnly
would not show the current title at all for windows with labels: only the
assigned label for each window would be displayed.
This would mean that as a different tab is selected the titlebar does
not change.
ShowWindowLabels could be turned on automatically the first time
f.setWindowLabel is invoked [?]
If a window shows a window label as well as a title, the label will be
shown to the left of the window title in the titlebar.
ShowWindowLabelsOnly
The second option allows only the new Window label if set, to be shown in
title bar, without current tab label.
This has no effect on windows without labels.
-- Iconmanager behaviour
If a window has a label, only window label without title is shown in the
iconmanager.
[Allow both label and title to be shown if iconmanager width permits??]
-- Window creation option
An extra option could be added to ctwm menu items or function calls that
are capable of creating a new window
-WithLabel "label"
and optionally -LabelOnly.
If LabelOnly is set then only the new label is shown in the title bar,
without tab title. In that case the title bar does not change if a new tab
with a different name is chosen. This is only relevant to windows that
support tabs, e.g. browsers, xfce4-terminal, gnome-terminal.
-- Window display code changed
I don't know enough about the details of ctwm implementation, but I assume
the code changes required would include:
Extra field in each window record specifying label, undefined by default.
Extra field for each window record specifying if LabelOnly is true or
false, unless that is a global setting rather than a per window setting.
Extra code for reading .ctwmrc entries that can refer to labels.
Extra code for implementing the required actions as specified in .ctwmrc
including code for f.setWindowLabel
Extra code for run time behaviour e.g. setting/displaying titles for
windows.
==========
All just a dream for some future time.
Aaron