mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-08 03:14:17 +03:00
Merge branch '2971_menu_mouse_click'
* 2971_menu_mouse_click: Ticket #2971: mouse click below non-droppeddown menubar activates menu box.
This commit is contained in:
commit
4312c5bd01
@ -2,11 +2,11 @@
|
||||
Pulldown menu code
|
||||
|
||||
Copyright (C) 1994, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||
2007, 2009, 2011, 2012
|
||||
2007, 2009, 2011, 2012, 2013
|
||||
The Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
Andrew Borodin <aborodin@vmail.ru>, 2012
|
||||
Andrew Borodin <aborodin@vmail.ru>, 2012, 2013
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
||||
@ -652,6 +652,13 @@ menubar_event (Gpm_Event * event, void *data)
|
||||
|
||||
if (!menubar->is_dropped)
|
||||
{
|
||||
if (local.y > 1)
|
||||
{
|
||||
/* mouse click below menubar -- close menu and send focus to widget under mouse */
|
||||
menubar_finish (menubar);
|
||||
return MOU_UNHANDLED;
|
||||
}
|
||||
|
||||
menubar->previous_widget = dlg_get_current_widget_id (w->owner);
|
||||
menubar->is_active = TRUE;
|
||||
menubar->is_dropped = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user