mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
window: Include decoration border and padding in resize area
This is relevant for the Windows theme, which is the only theme that uses padding on decorations. All other themes are unaffected.
This commit is contained in:
parent
cdb1cda68b
commit
e45cb3340c
@ -6758,7 +6758,7 @@ update_border_windows (GtkWindow *window)
|
|||||||
cairo_region_t *region;
|
cairo_region_t *region;
|
||||||
cairo_rectangle_int_t rect;
|
cairo_rectangle_int_t rect;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
GtkBorder border;
|
GtkBorder border, tmp;
|
||||||
GtkBorder window_border;
|
GtkBorder window_border;
|
||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
|
|
||||||
@ -6769,6 +6769,10 @@ update_border_windows (GtkWindow *window)
|
|||||||
|
|
||||||
gtk_style_context_save_to_node (context, priv->decoration_node);
|
gtk_style_context_save_to_node (context, priv->decoration_node);
|
||||||
gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &border);
|
gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &border);
|
||||||
|
gtk_style_context_get_border (context, gtk_style_context_get_state (context), &tmp);
|
||||||
|
sum_borders (&border, &tmp);
|
||||||
|
gtk_style_context_get_padding (context, gtk_style_context_get_state (context), &tmp);
|
||||||
|
sum_borders (&border, &tmp);
|
||||||
gtk_widget_style_get (widget,
|
gtk_widget_style_get (widget,
|
||||||
"decoration-resize-handle", &handle,
|
"decoration-resize-handle", &handle,
|
||||||
NULL);
|
NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user