win32: Apply popup shadow width

This commit is contained in:
Matthias Clasen 2021-02-13 21:10:52 -05:00
parent ad9c813ed1
commit e0c48e74bd

View File

@ -1201,6 +1201,12 @@ gdk_win32_surface_move (GdkSurface *surface,
gdk_win32_surface_move_resize_internal (surface, TRUE, x, y, -1, -1);
}
static void gdk_win32_surface_set_shadow_width (GdkSurface *window,
int left,
int right,
int top,
int bottom);
static void
gdk_win32_surface_layout_popup (GdkSurface *surface,
int width,
@ -1212,11 +1218,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,