[gtk/resizing-fixes] window: Set shadow size in ::compute-size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/resizing-fixes] window: Set shadow size in ::compute-size
- Date: Wed, 12 Aug 2020 12:01:13 +0000 (UTC)
commit e21a7d70f153c4530bb8e122cf943e89f143ddee
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 12 08:00:34 2020 -0400
window: Set shadow size in ::compute-size
This is the new way of communicating shadow size.
gtk/gtkwindow.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d9620cd586..030f548dc7 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4135,6 +4135,11 @@ toplevel_compute_size (GdkToplevel *toplevel,
get_shadow_width (window, &shadow);
+ if (priv->use_client_shadow)
+ gdk_toplevel_size_set_shadow_size (size,
+ shadow.left, shadow.right,
+ shadow.top, shadow.bottom);
+
min_width = MIN (default_width + shadow.left + shadow.right, width);
min_height = MIN (default_height + shadow.top + shadow.bottom, height);
gdk_toplevel_size_set_min_size (size, min_width, min_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]