summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/theme.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 81c337d0..927b2a5a 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5114,10 +5114,8 @@ meta_frame_style_draw_with_style_gtk (MetaFrameStyle *frame_style,
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)
{
GdkPixbuf *pixbuf = NULL;
const char *icon_name = NULL;