diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-04-15 17:44:55 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-04-17 11:23:53 +0800 |
commit | b85f0ccc672455d4b7c895cb00d3804b44310659 (patch) | |
tree | 34c55cf69c9f7ca2eb2ee5e20a960077e9f060ac /gdk/win32/gdkmain-win32.c | |
parent | 24d3f3fcb2894df110a17317260b8705d68d22ec (diff) | |
download | gtk+-b85f0ccc672455d4b7c895cb00d3804b44310659.tar.gz |
gdk-win32: Really Implement GdkScreen->is_composited()
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
Diffstat (limited to 'gdk/win32/gdkmain-win32.c')
-rw-r--r-- | gdk/win32/gdkmain-win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c index 905c729fab..f12c16673b 100644 --- a/gdk/win32/gdkmain-win32.c +++ b/gdk/win32/gdkmain-win32.c @@ -130,6 +130,7 @@ _gdk_win32_windowing_init (void) _cf_url = RegisterClipboardFormat ("UniformResourceLocatorW"); _cf_html_format = RegisterClipboardFormat ("HTML Format"); _cf_text_html = RegisterClipboardFormat ("text/html"); + _is_win8_or_later = g_win32_check_windows_version (6, 2, 0, G_WIN32_OS_ANY); _gdk_win32_selection_init (); } |