Ensure that detached menus don't keep focus grab in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 May 2013 13:14:43 +0000 (13:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 May 2013 13:14:43 +0000 (13:14 +0000)
commit830c06655b226cfe9fe55d57da8c948d1744107c
tree77ac233da162d882d3ea324b8f034abf893d23ef
parenta7587bc4a2585974638c86f22e7ce682688ca983
Ensure that detached menus don't keep focus grab in wxGTK.

A widget being hidden must remove its focus grab with GTK+, otherwise GTK+
would continue sending all input messages to it but fail to process them
because the widget is not realized any more, resulting in a complete freeze of
the entire program.

Do it when detaching menus from menubar and menubar from the frame to fix just
such a problem in case SetMenuBar() was called while the previous menubar was
opened.

Closes #15221.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/menu.cpp