From 72be89dfb92711a39ecb6cb2799fde06bf31c339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 16 Oct 2015 03:21:14 +0200 Subject: [PATCH] theme: Reset button style state when done drawing We use a single style context to draw titlebar buttons, updating its state according to each button's prelight state as necessary. This assumes that the original state is neither ACTIVE nor PRELIGHT, which means we need to reset the state after drawing to avoid propagating the state of the last-drawn button. --- src/ui/theme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/theme.c b/src/ui/theme.c index b4f1b03f7..d86c25114 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -890,6 +890,7 @@ meta_frame_layout_draw_with_style (MetaFrameLayout *layout, cairo_restore (cr); if (button_class) gtk_style_context_remove_class (style, button_class); + gtk_style_context_set_state (style, state); } }