From 6bacbac656dd62fb711a6b7de6af40a8096b962b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 11 Mar 2015 15:20:18 +0100 Subject: [PATCH] theme: Stop clipping titlebar buttons There is no good reason to do so, besides a nice way to check whether a particular button is enabled. However there are legitimate reasons for overdrawing like box-shadows or outlines, so remove the clip. --- src/ui/theme.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/theme.c b/src/ui/theme.c index df1eb2d73..4aff7e068 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -770,10 +770,8 @@ meta_frame_layout_draw_with_style (MetaFrameLayout *layout, gtk_style_context_set_state (style, state); cairo_save (cr); - gdk_cairo_rectangle (cr, &button_rect); - cairo_clip (cr); - if (gdk_cairo_get_clip_rectangle (cr, NULL)) + if (button_rect.width > 0 && button_rect.height > 0) { cairo_surface_t *surface = NULL; const char *icon_name = NULL;