From: Mart Raudsepp Date: Fri, 21 Jul 2006 01:49:18 +0000 (+0000) Subject: Don't check with CanSetTransparent from within SetTransparent if the former is suppos... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3eecbda80c91ee07790f50adb2eb92c35e6da86e 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 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 1a712ae824..bf4cec07be 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -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);