correctly. About box now pops up, but is a mess.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14412
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int wxEntryStart( int& argc, char *argv[] )
{
#ifdef __WXDEBUG__
int wxEntryStart( int& argc, char *argv[] )
{
#ifdef __WXDEBUG__
// install the X error handler
gs_pfnXErrorHandler = XSetErrorHandler( wxXErrorHandler );
// install the X error handler
gs_pfnXErrorHandler = XSetErrorHandler( wxXErrorHandler );
#endif // __WXDEBUG__
wxString displayName;
#endif // __WXDEBUG__
wxString displayName;
XWindowAttributes* window_attributes)
{
GR_WINDOW_INFO info;
XWindowAttributes* window_attributes)
{
GR_WINDOW_INFO info;
+ Window parent = 0;
+ GrFlush();
GrGetWindowInfo(w, & info);
window_attributes->x = info.x;
GrGetWindowInfo(w, & info);
window_attributes->x = info.x;
window_attributes->override_redirect = FALSE;
window_attributes->screen = NULL;
window_attributes->override_redirect = FALSE;
window_attributes->screen = NULL;
+ /* We need to check if any parents are unmapped,
+ * or we will report a window as mapped when it is not.
+ */
+ parent = info.parent;
+ while (parent)
+ {
+ GrGetWindowInfo(parent, & info);
+ if (info.mapped == 0)
+ window_attributes->map_state = IsUnmapped;
+
+ parent = info.parent;
+ }
+
return 1;
}
static XErrorHandler* g_ErrorHandler = NULL;
return 1;
}
static XErrorHandler* g_ErrorHandler = NULL;
-static void DefaultNanoXErrorHandler(GR_EVENT_ERROR* ep)
+void DefaultNanoXErrorHandler(GR_EVENT_ERROR* ep)
// Set the input focus if couldn't do it before
if (m_needsInputFocus)
// Set the input focus if couldn't do it before
if (m_needsInputFocus)
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------