gdk-win32: Really Implement GdkScreen->is_composited()

Desktop / GNOME / GTK - Chun-wei Fan [src.gnome.org] - 16 April 2015 22:23 UTC

The current GdkScreen->is_composited() is a stub as we were having Windows XP being supported, which does not support Desktop Window Manager (DWM), which is used by Windows for composition.

Windows Vista and later support DWM, and it is always enabled on Windows 8/ Server 2012 and later.

Please note that as we are dropping XP support in this cycle, this is the commit that would say goodbye to Windows XP support for GTK+-3.x, by linking directly to dwmapi.dll. This means, we only check whether we are on Windows 8 or Server 2012 (or later) to see whether we unconditionally have composition enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=741849

b85f0cc gdk-win32: Really Implement GdkScreen->is_composited()
build/win32/vs10/gdk.vcxprojin | 8 ++++----
build/win32/vs9/gdk.vcprojin | 8 ++++----
configure.ac | 2 +-
gdk/win32/gdkglobals-win32.c | 2 ++
gdk/win32/gdkmain-win32.c | 1 +
gdk/win32/gdkprivate-win32.h | 2 ++
gdk/win32/gdkscreen-win32.c | 13 ++++++++++++-
7 files changed, 26 insertions(+), 10 deletions(-)

Upstream: git.gnome.org


  • Share