changeset 2097:6608fc7f6465

Win: The window transparency feature is enabled and disabled by the system. So when the system has it disable correctly report it as disabled.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 11 Jun 2020 18:02:29 +0000
parents 5110598705c2
children 665d87a50eac
files win/dw.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Thu Jun 11 05:08:36 2020 +0000
+++ b/win/dw.c	Thu Jun 11 18:02:29 2020 +0000
@@ -13369,9 +13369,6 @@
         case DW_FEATURE_HTML:
         case DW_FEATURE_HTML_RESULT:
 #endif
-#ifdef AEROGLASS
-        case DW_FEATURE_WINDOW_TRANSPARENCY:
-#endif
 #ifdef BUILD_TOAST
         case DW_FEATURE_NOTIFICATION:
 #endif
@@ -13379,6 +13376,12 @@
         case DW_FEATURE_MDI:
             return DW_FEATURE_ENABLED;
 #ifdef AEROGLASS
+        case DW_FEATURE_WINDOW_TRANSPARENCY:
+        {
+            if(_dw_composition)
+                return DW_FEATURE_ENABLED;
+            return DW_FEATURE_DISABLED;
+        }
         case DW_FEATURE_DARK_MODE:
         {
             if(_DW_DARK_MODE_SUPPORTED)