From 7116f6e03be3a709062685a47a982554201899aa Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 12 Nov 2014 19:28:14 +0100 Subject: buttons: Fix background functions for non-default layouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the configured layout is taken into account for positioning the buttons, the mapping from button function states to button position states just assumed the default button layout in LTR locales. Do a proper mapping depending on the actual layout instead. Based on metacity commit: 6a52883c2b670ad645257373515d1e704408b93d From: Florian Müllner Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=638700 --- src/ui/theme.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/theme.h') diff --git a/src/ui/theme.h b/src/ui/theme.h index c7437bdf..a4ddb5f6 100644 --- a/src/ui/theme.h +++ b/src/ui/theme.h @@ -210,6 +210,11 @@ struct _MetaFrameGeometry GdkRectangle right_right_background; /* End of button rects (if changed adjust memset hack) */ + /* Saved button layout */ + MetaButtonLayout button_layout; + int n_left_buttons; + int n_right_buttons; + /* Round corners */ guint top_left_corner_rounded_radius; guint top_right_corner_rounded_radius; -- cgit v1.2.1