Ticket #2971: mouse click below non-droppeddown menubar activates menu box.
commite29d98336b90729b1923725f8b9cfe9878b49587
authorAndrew Borodin <aborodin@vmail.ru>
Thu, 21 Feb 2013 12:20:12 +0000 (21 16:20 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Tue, 5 Mar 2013 12:51:52 +0000 (5 16:51 +0400)
treec66c5e3f7107034910541e170d9d7d3c0f40fffb
parentc93a1571685321a9d72a1d596ed848edae26dce9
Ticket #2971: mouse click below non-droppeddown menubar activates menu box.

How to reproduce:
1. Switch the "Drop down menus" option off.
2. Press F9 to activate menubar. Menu is not dropped.
3. Click somewhere below menubar, on one of the files in the directory
listing.

Buggy behavior: the corresponding "Left" or "File" etc. dropdown is
opened, and the mouse button is released, menu item under the mouse
cursor is activated.

Correct behavior: clicking with the mouse somewhere other than the
active menubar doesn't open dropdown menu, instead removes the focus from
menubar and acts on the actual item under the mouse pointer (such
as a filename in the panel).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/menu.c