m_showIconic = FALSE;
m_initialSize = wxDefaultSize;
+#if !wxUSE_NANOX
m_visualColormap = NULL;
m_colorCube = NULL;
+#endif
}
wxApp::~wxApp()
{
+#if !wxUSE_NANOX
if (m_colorCube)
free( m_colorCube );
if (m_visualColormap)
delete [] (XColor*)m_visualColormap;
+#endif
}
bool wxApp::Initialized()
{
case Expose:
{
-#if wxUSE_TWO_WINDOWS
+#if wxUSE_TWO_WINDOWS && !wxUSE_NANOX
if (event->xexpose.window != (Window)win->GetClientWindow())
{
XEvent tmp_event;
#if !wxUSE_NANOX
case GraphicsExpose:
{
+ printf( "GraphicExpose event\n" );
+
// wxLogDebug( "GraphicsExpose from %s", win->GetName().c_str(),
// event->xgraphicsexpose.x, event->xgraphicsexpose.y,
// event->xgraphicsexpose.width, event->xgraphicsexpose.height);
{
if (!win->IsEnabled())
return FALSE;
-
+
// Here we check if the top level window is
// disabled, which is one aspect of modality.
wxWindow *tlw = win;
win->GetEventHandler()->ProcessEvent(event);
- win->OnInternalIdle();
-
if (event.MoreRequested())
needMore = TRUE;
node = node->Next();
}
+ win->OnInternalIdle();
+
return needMore;
}
m_maxRequestSize = XMaxRequestSize( (Display*) wxApp::GetDisplay() );
+#if !wxUSE_NANOX
// Get info about the current visual. It is enough
// to do this once here unless we support different
// visuals, displays and screens. Given that wxX11
}
}
}
+#endif
return TRUE;
}
{
// While the GUI isn't working that well, just print out the
// message.
-#if 0
+#if 1
wxAppBase::OnAssert(file, line, msg);
#else
wxString msg2;