Fix mouse event handling in menu that overlaps buttonbar.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-08-16 14:20:08 +04:00 committed by Slava Zanko
parent d7482275c3
commit ce0e129891
2 changed files with 0 additions and 17 deletions

View File

@ -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;
}

View File

@ -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;
}