[gtk/resizing-fixes] x11: Use shadow size from GdkToplevelSize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/resizing-fixes] x11: Use shadow size from GdkToplevelSize
- Date: Wed, 12 Aug 2020 12:13:29 +0000 (UTC)
commit 5af0e93de00c08102c2d1b6f27ade51e03d13b27
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 12 08:13:03 2020 -0400
x11: Use shadow size from GdkToplevelSize
gdk/x11/gdksurface-x11.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index b0a49cc737..47edd3d967 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -4863,10 +4863,11 @@ gdk_x11_toplevel_present (GdkToplevel *toplevel,
gdk_toplevel_size_init (&size, bounds_width, bounds_height);
gdk_toplevel_notify_compute_size (toplevel, &size);
- g_warn_if_fail (size.width > 0);
- g_warn_if_fail (size.height > 0);
width = size.width;
height = size.height;
+ gdk_x11_surface_set_shadow_width (surface,
+ size.shadow_left, size.shadow_right,
+ size.shadow_top, size.shadow_bottom);
if (gdk_toplevel_layout_get_resizable (layout))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]