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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user