From e12ab6bc99fe72af4cb791e3540bcd6f9a575a72 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 6 Jan 2014 15:20:20 +0000 Subject: [PATCH] CtrlCtrl: GtkWnd IsCompositedGui implementation (thanks Klugier) git-svn-id: svn://ultimatepp.org/upp/trunk@6720 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/GtkWnd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uppsrc/CtrlCore/GtkWnd.cpp b/uppsrc/CtrlCore/GtkWnd.cpp index a3d1a2d65..24d1524a6 100644 --- a/uppsrc/CtrlCore/GtkWnd.cpp +++ b/uppsrc/CtrlCore/GtkWnd.cpp @@ -56,7 +56,9 @@ bool Ctrl::IsAlphaSupported() bool Ctrl::IsCompositedGui() { - return false; + GuiLock __; + static bool b = gdk_display_supports_composite(gdk_display_get_default()); + return b; } Vector Ctrl::GetTopCtrls()