This should fix wxDC::Clear() not clearing the whole window on Ubuntu 12.04 with overlay scrollbars
see #14871
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73185
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !wxAppBase::Initialize(argc_, argv_) )
return false;
- // disable Ubuntu "overlay scrollbar" until we figure out how to keep it
- // from messing up our window contents when scrolling, see ticket #14871
- wxSetEnv(wxS("LIBOVERLAY_SCROLLBAR"), wxS("0"));
-
#if wxUSE_THREADS
if (!g_thread_supported())
{
{
wxCHECK_RET( m_window, wxT("GetSize() doesn't work without window") );
- m_window->GetClientSize( width, height );
+ if (m_window->m_wxwindow && m_gdkwindow)
+ gdk_drawable_get_size(m_gdkwindow, width, height);
+ else
+ m_window->GetClientSize(width, height);
}
//-----------------------------------------------------------------------------