Fix mouse event handling in menu that overlaps buttonbar.