X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8033a5ddc49eac10758bad563479e573fdf7390..a83ea9c15a7ac7bbdc6686164cfcbbc21ae5031a:/src/x11/app.cpp diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 9a5fff8ef2..5d1ab3726c 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -446,16 +446,15 @@ bool wxApp::ProcessXEvent(WXEvent* _event) if (event->update.utype == GR_UPDATE_SIZE) #endif { - if (win->IsTopLevel()) + wxTopLevelWindow *tlw = wxDynamicCast(win, wxTopLevelWindow); + if ( tlw ) { - wxTopLevelWindow *tlw = (wxTopLevelWindow*) win; tlw->SetConfigureGeometry( XConfigureEventGetX(event), XConfigureEventGetY(event), XConfigureEventGetWidth(event), XConfigureEventGetHeight(event) ); } - if (win->IsTopLevel() && win->IsShown()) + if ( tlw && tlw->IsShown() ) { - wxTopLevelWindowX11 *tlw = (wxTopLevelWindowX11 *) win; tlw->SetNeedResizeInIdle(); } else @@ -467,7 +466,6 @@ bool wxApp::ProcessXEvent(WXEvent* _event) } } return FALSE; - break; } #if !wxUSE_NANOX case PropertyNotify: