mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Fix mouse event handling in menu that overlaps buttonbar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d7482275c3
commit
ce0e129891
@ -721,15 +721,6 @@ edit_dialog_event (Gpm_Event * event, void *data)
|
||||
if (ret == MOU_UNHANDLED)
|
||||
dlg_select_widget (w);
|
||||
}
|
||||
else if (event->y == h->y + h->lines)
|
||||
{
|
||||
/* buttonbar */
|
||||
|
||||
/* In general, this can be handled in default way (dlg_mouse_event)
|
||||
* but let make it here to avoid walking in widget list */
|
||||
w = (Widget *) find_buttonbar (h);
|
||||
ret = w->mouse (event, w);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1629,14 +1629,6 @@ midnight_event (Gpm_Event * event, void *data)
|
||||
ret = ((Widget *) the_menubar)->mouse (event, the_menubar);
|
||||
}
|
||||
}
|
||||
else if (event->y == h->y + h->lines && mc_global.keybar_visible)
|
||||
{
|
||||
/* buttonbar */
|
||||
|
||||
/* in general, this can be handled in default way (dlg_mouse_event)
|
||||
* but let make it here to avoid walking in widget list */
|
||||
ret = ((Widget *) the_bar)->mouse (event, the_bar);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user