From xemacs-m  Thu Mar 20 14:49:46 1997
Received: from black-ice.cc.vt.edu (root@black-ice.cc.vt.edu [128.173.14.71])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA17190
	for <xemacs-beta@xemacs.org>; Thu, 20 Mar 1997 14:49:45 -0600 (CST)
Received: from black-ice.cc.vt.edu (valdis@LOCALHOST [127.0.0.1])
	by black-ice.cc.vt.edu (8.8.5/8.8.5) with ESMTP id PAA21464
	for <xemacs-beta@xemacs.org>; Thu, 20 Mar 1997 15:49:38 -0500
Message-Id: <199703202049.PAA21464@black-ice.cc.vt.edu>
X-Mailer: exmh version 2.0gamma 1/27/96
To: xemacs-beta@xemacs.org
Subject: Argh! Menu bug (I think...)
From: Valdis.Kletnieks@vt.edu
X-Url: http://black-ice.cc.vt.edu/~valdis/
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="==_Exmh_-1500094186P";
	micalg=pgp-md5; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit
Date: Thu, 20 Mar 1997 15:49:34 -0500

--==_Exmh_-1500094186P
Content-Type: multipart/mixed ;
	boundary="==_Exmh_11384227780"

This is a multipart MIME message.

--==_Exmh_11384227780
Content-Type: text/plain; charset=us-ascii

Scenario: Lucid menus, 20.1-b8.

Problem: If you have cascading menus (such as  used by Custom), if you
have a menu that is   cascaded left because it   hits the edge of  the
screen, you cannot move  the mouse down off the  sub-menu title -  the
menu just disappears and you get whatever menu was *under* it instead.

My  replication: (See attached GIF)  Position   the main XEmacs window
such that  you  can do the  following: Options, Customize, Emacs,
Applications, News,  Gnus, Score all cascade to the  *right*, but
Score/Decay cascades to the *left*. Moving the mouse onto the titlebar
works OK, but then trying to move the mouse off the 'Gnus Score Decay'
titlebar onto the 'Gnus Decay Scores' toggle made the entire window,
its  parent 'Scores' both dissapear, and then the 'Gnus/Various' menu
cascade (as that's what the mouse was in once the Scores and Decay
menus went poof).  I also managed (by moving the main window) to replicate
this at Options, Customize, Emacs, Languages - trying to move down to 'C'
caused it to fold up the window.

I *suspect* the problem is in lxlib/xlwmenu.c, down near line
2341, in map_event_to_widget_value(). I think what happens is that
the for loop finds the *parent* menu first, and Does The Wrong Thing
if a cascaded menu is overlaying a parent.  Should this loop be
run in the reverse order?

Of course, my diagnosis could be wrong, or I could have shot myself in
the foot by turning on *all* the IBM xlc debugging flags (don't try
this at home - '-qcheck=all' to enable null pointer and array bounds
checking is *very* painful ;)


--==_Exmh_11384227780
Content-Type: image/gif ; name="gnus.gif"
Content-Description: gnus.gif
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gnus.gif"

R0lGODdh9gB+APIAAAAAAKjY/2WCmSKMIsr//wAAAAAAAAAAACwAAAAA9gB+AAAD/ki63P4w
ykmrvTjrzbv/YCiOZGmKwqmubOu+jpDCdG3ftzwrQe//wKBwSCwaj8ikcslsOp9QoW5HiFqv
2Kx2y+3+pgyveEwum8/gBRbAPvfYcPcb3pbb7WletB7gjwFAgG6CPn53h155VVCEP41dj2+D
QpGIlleKe0aAdIWBhXGUoqCPoZJ8pkGVpYZ9fnSCpZdoOmFPlYGNsZ99jkO4ksG9wq+eo6rG
w8TCp7yzZJm3R7LKwbpErdW91Ne+yKPczt6EwM9a0U66nczD3OW53eLt3sn0vOGbu+zmXehN
uOTuicuGrZ5BfXNgHbsHCyE8Tp7e8cNUSw2jY/gMulpo/myVQI0cl4XUFlDixCj+/qkKOO7j
Pm3WPmUkOZJlR5nOUp3kkvJfyYPM6sSTF8+mTZHfQOWk57DY0pc7jfRMJxRoQohXiyiEx1Wj
TkdbV0ZK1QlV0qNRkUxNy7aMybZM1sKdu+UtXbUV9dzdm4Ug37h5F/0dTNiS3MKIE29RNKWx
48eQI0ueTLmy5cuYM2vezLlz5gWeQ4seTbq06dOoIytIzbq169ewYzvGQbu27dsbZOhVzLs3
zxm+gwu3olvw8OPIpQJPzrz5l+XOoyMv/pwyNr91w1rSLr0f9ACVjSud4zbXdnndz32XMaC9
+/e7X9pNN7J80vTqd7N/zz8+/kyZplDjC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atiHbUFgLzyJw98lFCePyjtPwoSOEQspC+OSQiHxXGRSJLkY5E
DCQjSZhJUvIvlrzkXh7IQBVqEhEV/J0PP/mtRiJOd6ckpRvshycQSq96qoSGKVOJO5d4MZZW
DGQ+MAU11OGSIrr0YLDI08VfrktiUCmLNfBlTCdeJIu8bF0zicjGvkGNbx7y5TTBGEzIfSp3
ZKzjNte4Buq5ciPquN0wxxm+brIzMZl857ZmKU9J0rOelbwnPjGpz31usp/+pEtxZEPQghr0
oAhNQUIXytCGOvQyAgkAADs=

--==_Exmh_11384227780
Content-Type: text/plain; charset=us-ascii

				Valdis Kletnieks
				Computer Systems Engineer
				Virginia Tech

--==_Exmh_11384227780--



--==_Exmh_-1500094186P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.2

iQCVAwUBMzGi29QBOOoptg9JAQGZvQQAn0Wmu/7W2dYB2tybimCr4Dl5HmDWkLyl
cKGAiiXNQhQwn07P8KD0QkR2zSOKDI0RshN7vopFLJp+DVOX13z9ykwYeVkTfQ5/
TtZc4aeDp/SmonrqD7iBfFYI+8fhydIGNSF017w1w87UbD2mc6ICRERvNZHpOJ9Y
86YIda8/v6E=
=v1Zd
-----END PGP MESSAGE-----

--==_Exmh_-1500094186P--

