Avoid gdk_window_set_composited() with GTK+4
This commit is contained in:
@@ -53,8 +53,12 @@ using namespace wxGTKImpl;
|
|||||||
typedef guint KeySym;
|
typedef guint KeySym;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXGTK4__
|
||||||
|
#define wxGTK_HAS_COMPOSITING_SUPPORT 0
|
||||||
|
#else
|
||||||
// gdk_window_set_composited() is only supported since 2.12
|
// gdk_window_set_composited() is only supported since 2.12
|
||||||
#define wxGTK_HAS_COMPOSITING_SUPPORT (GTK_CHECK_VERSION(2,12,0) && wxUSE_CAIRO)
|
#define wxGTK_HAS_COMPOSITING_SUPPORT (GTK_CHECK_VERSION(2,12,0) && wxUSE_CAIRO)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PANGO_VERSION_CHECK
|
#ifndef PANGO_VERSION_CHECK
|
||||||
#define PANGO_VERSION_CHECK(a,b,c) 0
|
#define PANGO_VERSION_CHECK(a,b,c) 0
|
||||||
@@ -2310,8 +2314,10 @@ void wxWindowGTK::GTKHandleRealized()
|
|||||||
#if wxGTK_HAS_COMPOSITING_SUPPORT
|
#if wxGTK_HAS_COMPOSITING_SUPPORT
|
||||||
if (IsTransparentBackgroundSupported())
|
if (IsTransparentBackgroundSupported())
|
||||||
{
|
{
|
||||||
|
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
|
||||||
if (window)
|
if (window)
|
||||||
gdk_window_set_composited(window, true);
|
gdk_window_set_composited(window, true);
|
||||||
|
wxGCC_WARNING_RESTORE()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif // wxGTK_HAS_COMPOSITING_SUPPORT
|
#endif // wxGTK_HAS_COMPOSITING_SUPPORT
|
||||||
|
Reference in New Issue
Block a user