Next try on pop up menus. (#ifdef x11).
More SetFocus() work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -251,7 +251,17 @@ void wxWindowX11::SetFocus()
|
||||
Window xwindow = (Window) GetMainWindow();
|
||||
|
||||
wxCHECK_RET( xwindow, wxT("invalid window") );
|
||||
|
||||
|
||||
wxCHECK_RET( AcceptsFocus(), wxT("set focus on window that doesn't accept the focus") );
|
||||
|
||||
#if 0
|
||||
if (GetName() == "scrollBar")
|
||||
{
|
||||
char *crash = NULL;
|
||||
*crash = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (wxWindowIsVisible(xwindow))
|
||||
{
|
||||
XSetInputFocus( wxGlobalDisplay(), xwindow, RevertToParent, CurrentTime );
|
||||
|
Reference in New Issue
Block a user