Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > 2007 TWM makes titles twice as tall
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 27th April 03:39
robert m. riches jr.
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall



2007's twm is making the title bars twice as tall as they
should be, while 2006's twm makes them about right (with the
same config files). Searches on Google and qa.mandriva.com
found nothing relevant.

I'm using straight twm, without KDE or Gnome. My screen
resolution is 1600x1200, dpi between 100 and 120. I have

TitleFont "9x15"

in my .twmrc. In 2006, the title bar is an appropriate
height, 20 pixels tall. However, in 2007, it is a hideously
ugly and wasteful 40 pixels tall. Nothing else relevant in
any config files has changed, and I can go back and forth
between 2006 and 2007 to demonstrate the difference in
behavior. The odd thing is another account with no ~/.twmrc
file is about the same in 2006 and 2007.

Any suggestions for forcing 2007's twm to refrain from
bloating the title bar height?

Thanks.

--
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
  Reply With Quote


  sponsored links


2 27th April 03:40
whiskers
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall



I'll be the one to suggest the obvious 'delete the existing ~/.twmrc for
your account' ...

--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
  Reply With Quote
3 27th April 03:40
robert m. riches jr.
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall


Thank you for your attempt to help. Actually, I had been
hoping for something a bit more constructive. If I didn't
want specific twm menu items, if I didn't want the function
key definitions I have been using for nearly two decades, if
I wanted nonsensical colors for window decoration, and if I
wanted titlebars on xclock, xload, xcpustate, and xbiff,
then I wouldn't have written a .twmrc file in the first
place. It's not rocket science to deduce that the TitleFont
assignment is probably what is triggering twm to bloat out
the titlebars. I guess it's off to thumb through the source
code.

--
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
  Reply With Quote
4 27th April 03:40
dan espen
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall


"Robert M. Riches Jr." <spamtrap42@verizon.net> writes:

Ah, twm, brings back memories.
I jumped from twm to fvwm which is the real deal.

First I'd make sure that you actually have a 9x15 font
installed. Maybe:

xterm -fn 9x15

If that's OK, you have some kind of issue with fonts
and TWM. Look at your setting for $LOCALE.
I don't think you are going to find many twm users here.
You could try comp.windows.x.
  Reply With Quote
5 27th April 03:41
robert m. riches jr.
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall


<snip>


Double checked font 9x15 per your suggestion, and it worked
fine from both accounts. I already defaulted to 9x15 font
for all xterms, so I was confident that was not the problem.

The only difference in locale settings between the account
that shows bloated titlebars and the account that does not
show the problem is LC_COLLATE set to 'C'. Fiddling with
$LOCALE stuff might be useful. Thanks for the idea.

I suspect some of the code that differs between 2006's twm
and 2007's twm (or maybe gtk if twm uses it) allows more
vertical headroom for some fonts for the dots, circles,
hats, squiggles and such that some European languages stick
on top of some letters. (Firefox compiled with gtk2 has
that problem, as I have griped about here before.)

Thanks for the newsgroup suggestion.

--
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
  Reply With Quote
6 27th April 13:51
robert m. riches jr.
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall


The LOCALE setting was the key. In Mandriva 2006, LC_CTYPE
is set to en_US, but in 2007 it it set to en_US.UTF-8.
Getting rid of the ".UTF-8" suffix solves the problem and
gets the titlebars back to normal height. For now, I put
the modification of LC_CTYPE in my .cshrc file. If I find
reason to be more precise and only apply that change when
running twm, I can probably move the setting to my .Xclients
file.

Thanks for the help.

--
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
  Reply With Quote
7 27th April 13:52
whiskers
External User
 
Posts: 1
Default 2007 TWM makes titles twice as tall


That UTF-8 thing got all my 'terminal' programs (chiefly slrn and mc)
messed up; I found that in 'Configure your computer - System - Select the
language and the country or region of the system - Advanced' you can
select 'Old compatibility (non UTF-8) encoding'; that got things back to
normal for me. (I use the default 'bash' shell).

Selecting that option gave me:

]$ locale
LANG=en_GB
LC_CTYPE=en_GB
LC_NUMERIC=en_GB
LC_TIME=en_GB
LC_COLLATE=en_GB
LC_MONETARY=en_GB
LC_MESSAGES=en_GB
LC_PAPER=en_GB
LC_NAME=en_GB
LC_ADDRESS=en_GB
LC_TELEPHONE=en_GB
LC_MEASUREMENT=en_GB
LC_IDENTIFICATION=en_GB
LC_ALL=

--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666