[gtk/popup-shadow-width: 1/2] win32: Apply popup shadow width




commit 164187f29ac16401f869960222ed1699e2d807a9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 13 21:10:52 2021 -0500

    win32: Apply popup shadow width

 gdk/win32/gdksurface-win32.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index c690fed206..59516a6635 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -1212,11 +1212,23 @@ gdk_win32_surface_layout_popup (GdkSurface     *surface,
   GdkRectangle bounds;
   GdkRectangle final_rect;
   int x, y;
+  int shadow_left, shadow_right, shadow_top, shadow_bottom;
 
   monitor = gdk_surface_get_layout_monitor (surface, layout,
                                             gdk_win32_monitor_get_workarea);
   gdk_win32_monitor_get_workarea (monitor, &bounds);
 
+  gdk_popup_layout_get_shadow_width (layout,
+                                     &shadow_left,
+                                     &shadow_right,
+                                     &shadow_top,
+                                     &shadow_bottom);
+  gdk_win32_surface_set_shadow_width (surface,
+                                      shadow_left,
+                                      shadow_right,
+                                      shadow_top,
+                                      shadow_bottom);
+
   gdk_surface_layout_popup_helper (surface,
                                    width,
                                    height,


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