Don't check with CanSetTransparent from within SetTransparent if the former is supposed to be pessimistic and

latter optimistic about actual visual result.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-07-21 01:49:18 +00:00
parent 941afb6b65
commit 3eecbda80c

View File

@@ -1325,7 +1325,7 @@ static Window wxGetTopmostWindowX11(Display *dpy, Window child)
bool wxTopLevelWindowGTK::SetTransparent(wxByte alpha)
{
if (!m_widget || !m_widget->window || !CanSetTransparent())
if (!m_widget || !m_widget->window)
return false;
Display* dpy = GDK_WINDOW_XDISPLAY (m_widget->window);