X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d76fe38b29803642f9b70c1457c25dbc1640f63e..53faea431638ee5c0013a2c888215c751fa6437b:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 98327a2aee..9b13515ed4 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -250,6 +250,8 @@ wxApp::wxApp() #endif m_colorCube = (unsigned char*) NULL; + + m_useBestVisual = FALSE; } wxApp::~wxApp() @@ -271,7 +273,8 @@ bool wxApp::OnInitGui() we make sure we get the best. this can sometimes be wasteful, of course, but what do these guys pay $30.000 for? */ - if (gdk_visual_get_best() != gdk_visual_get_system()) + if ((gdk_visual_get_best() != gdk_visual_get_system()) && + (m_useBestVisual)) { GdkVisual* vis = gdk_visual_get_best(); gtk_widget_set_default_visual( vis );