[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#426364: xterm dies on popup-menu() action



On Mon, May 28, 2007 at 11:20:12AM +0200, Miciah Dashiel Butler Masters wrote:
> Package: xterm
> Version: 225-1
> 
> Using the mouse is cumbersome, so I added these to my X resource
> database:
> 
> XTerm*vt100.translations: #override \n\
> 	Ctrl<Key>F1:popup-menu(mainMenu) \n\
> 	Ctrl<Key>F2:popup-menu(vtMenu)   \n\
> 	Ctrl<Key>F3:popup-menu(fontMenu) \n\
> 	Ctrl<Key>F4:popup-menu(tekMenu)
> 
> When I try to use one of the first three of these actions, XTerm
> dies:

I can see generally why - but not how to fix it (it's some
initialization done in Xaw rather than xterm which is needed).

If you pop the menu up normally, then the action does work.  However,
once it's up (unless you've got some additional keyboard mappings), I
don't see how to trigger the menu without using the mouse.  (If you can
really make _that_ work, I'm interested - may see if there's a way to
fix the initialization ;-)
 
> xterm:  warning, error event received:
> X Error of failed request:  BadWindow (invalid Window parameter)
>   Major opcode of failed request:  38 (X_QueryPointer)
>   Resource id in failed request:  0x0
>   Serial number of failed request:  344
>   Current serial number in output stream:  344
> 
> With the fourth, it segfaults.  Below is a backtrace.  I don't have
> debugging symbols installed (I see no xterm-dbg package), but if it
> would be helpful, I'm willing to go to some effort to get you a better
> backtrace.

I can fix this (see ftp://invisible-island.net/temp/xterm-225e.patch.gz)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpXQXNxRPLxQ.pgp
Description: PGP signature


Reply to: