From bbdabcad59858b0177035a097e9ae2888f4df6a5 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:17:16 +0200 Subject: [PATCH] style: the default theme draws arrows, check boxes, radio buttons and expanders with a cairo context clipped only around the area drawn, not with the whole clip of the window --- gtk/gtkstyle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 8e284fe39..bdfa388b6 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -3159,7 +3159,7 @@ draw_arrow (GdkWindow *window, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); gdk_cairo_set_source_color (cr, color); if (area) @@ -3859,7 +3859,7 @@ gtk_default_draw_check (GtkStyle *style, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); enum { BUTTON, MENU, CELL } type = BUTTON; int exterior_size; int interior_size; @@ -3984,7 +3984,7 @@ gtk_default_draw_option (GtkStyle *style, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); enum { BUTTON, MENU, CELL } type = BUTTON; int exterior_size; @@ -5382,7 +5382,7 @@ gtk_default_draw_expander (GtkStyle *style, double x_double, y_double; gint degrees = 0; - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); if (area) {