Done some work on wxFocusEvent::SetWindow(). Enough
at least solve the menu problem that dismissed menus when the parent menu (correctly) lost the focus. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -636,7 +636,7 @@ void wxWindowX11::DoGetSize(int *x, int *y) const
|
||||
|
||||
wxCHECK_RET( xwindow, wxT("invalid window") );
|
||||
|
||||
XSync(wxGlobalDisplay(), False);
|
||||
// XSync(wxGlobalDisplay(), False);
|
||||
|
||||
XWindowAttributes attr;
|
||||
Status status = XGetWindowAttributes( wxGlobalDisplay(), xwindow, &attr );
|
||||
@@ -654,7 +654,7 @@ void wxWindowX11::DoGetPosition(int *x, int *y) const
|
||||
Window window = (Window) m_mainWidget;
|
||||
if (window)
|
||||
{
|
||||
XSync(wxGlobalDisplay(), False);
|
||||
// XSync(wxGlobalDisplay(), False);
|
||||
XWindowAttributes attr;
|
||||
Status status = XGetWindowAttributes(wxGlobalDisplay(), window, & attr);
|
||||
wxASSERT(status);
|
||||
@@ -708,7 +708,7 @@ void wxWindowX11::DoGetClientSize(int *x, int *y) const
|
||||
|
||||
if (window)
|
||||
{
|
||||
XSync(wxGlobalDisplay(), False); // Is this really a good idea?
|
||||
// XSync(wxGlobalDisplay(), False); // Is this really a good idea?
|
||||
XWindowAttributes attr;
|
||||
Status status = XGetWindowAttributes( wxGlobalDisplay(), window, &attr );
|
||||
wxASSERT(status);
|
||||
|
Reference in New Issue
Block a user