summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2015-03-11 15:20:18 +0100
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-04-05 22:34:27 +0300
commit8ed7571452b5f1a7a97b5a86632d632521500c73 (patch)
treede6f816128910974887b3e0df1f782ddb6414970
parent9f092ba16057c280c907a58af14df5ab6fad3b80 (diff)
downloadmetacity-8ed7571452b5f1a7a97b5a86632d632521500c73.tar.gz
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.
-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;