Added SetActive to wxEventLoop
Ensured Yield has a wxEventLoop (wxX11) Process size event explicitly in top-level SetSize (wxX11) Added wxYield to wxTopLevelWindow::Show (wxX11) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -280,7 +280,6 @@ bool wxTopLevelWindowX11::Show(bool show)
|
||||
|
||||
m_needResizeInIdle = FALSE;
|
||||
}
|
||||
|
||||
if (show)
|
||||
{
|
||||
// This does the layout _before_ the
|
||||
@@ -292,8 +291,10 @@ bool wxTopLevelWindowX11::Show(bool show)
|
||||
Layout();
|
||||
}
|
||||
}
|
||||
wxYield();
|
||||
|
||||
return wxWindowX11::Show(show);
|
||||
bool ret = wxWindowX11::Show(show);
|
||||
return ret;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -637,8 +638,9 @@ void wxTopLevelWindowX11::DoSetClientSize(int width, int height)
|
||||
|
||||
void wxTopLevelWindowX11::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
{
|
||||
// wxLogDebug("DoSetSize: %s (%ld) %d, %d %dx%d", GetClassInfo()->GetClassName(), GetId(), x, y, width, height);
|
||||
|
||||
#if 0
|
||||
// wxLogDebug( "Setting pos: %d, %d", x, y );
|
||||
wxWindowX11::DoSetSize(x, y, width, height, sizeFlags);
|
||||
#endif
|
||||
XSync(wxGlobalDisplay(), False);
|
||||
@@ -715,6 +717,11 @@ void wxTopLevelWindowX11::DoSetSize(int x, int y, int width, int height, int siz
|
||||
XSync(wxGlobalDisplay(), False);
|
||||
XSync(wxGlobalDisplay(), False);
|
||||
#endif
|
||||
#if 1
|
||||
wxSizeEvent event(wxSize(width, height), GetId());
|
||||
event.SetEventObject(this);
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxTopLevelWindowX11::DoGetPosition(int *x, int *y) const
|
||||
|
Reference in New Issue
Block a user