[gtk: 1/2] GdkW32: remove klassTEMPSHADOW




commit eef1097c9054737b4c819001d1e19879d4a799b1
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Tue Oct 27 18:26:45 2020 +0100

    GdkW32: remove klassTEMPSHADOW
    
    Fixes issue #2019

 gdk/win32/gdksurface-win32.c | 35 +++++++++--------------------------
 1 file changed, 9 insertions(+), 26 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 076e18aac1..2ca4a670af 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -332,9 +332,8 @@ get_default_title (void)
 static ATOM
 RegisterGdkClass (GdkSurfaceType wtype)
 {
-  static ATOM klassTOPLEVEL   = 0;
-  static ATOM klassTEMP       = 0;
-  static ATOM klassTEMPSHADOW = 0;
+  static ATOM klassTOPLEVEL = 0;
+  static ATOM klassTEMP     = 0;
   static HICON hAppIcon = NULL;
   static HICON hAppIconSm = NULL;
   static WNDCLASSEXW wcl;
@@ -416,32 +415,16 @@ RegisterGdkClass (GdkSurfaceType wtype)
       break;
 
     case GDK_SURFACE_TEMP:
-      if (TRUE)
+      if (klassTEMP == 0)
         {
-          if (klassTEMPSHADOW == 0)
-            {
-              wcl.lpszClassName = L"gdkSurfaceTempShadow";
-              wcl.style |= CS_SAVEBITS;
-              wcl.style |= 0x00020000; /* CS_DROPSHADOW */
-
-              ONCE_PER_CLASS ();
-              klassTEMPSHADOW = RegisterClassExW (&wcl);
-            }
-
-          klass = klassTEMPSHADOW;
+          wcl.lpszClassName = L"gdkSurfaceTemp";
+          wcl.style |= CS_SAVEBITS;
+          ONCE_PER_CLASS ();
+          klassTEMP = RegisterClassExW (&wcl);
         }
-       else
-        {
-          if (klassTEMP == 0)
-            {
-              wcl.lpszClassName = L"gdkSurfaceTemp";
-              wcl.style |= CS_SAVEBITS;
-              ONCE_PER_CLASS ();
-              klassTEMP = RegisterClassExW (&wcl);
-            }
 
-          klass = klassTEMP;
-        }
+      klass = klassTEMP;
+
       break;
 
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]