summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-12 19:28:14 +0100
committerinfirit <[email protected]>2014-11-12 20:36:50 +0100
commit7116f6e03be3a709062685a47a982554201899aa (patch)
treed4a22eee782c807a424148a2a5dee9ac8ab5250a /src/ui/frames.c
parenta65e3c4165a5433de49e94bfb86f9c3e9ba32dce (diff)
downloadmarco-7116f6e03be3a709062685a47a982554201899aa.tar.bz2
marco-7116f6e03be3a709062685a47a982554201899aa.tar.xz
buttons: Fix background functions for non-default layouts
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 <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=638700
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r--src/ui/frames.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index e4db182d..60e09ea3 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2677,20 +2677,6 @@ meta_frames_paint_to_drawable (MetaFrames *frames,
break;
}
- /* Map button function states to button position states */
- button_states[META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND] =
- button_states[META_BUTTON_TYPE_MENU];
- button_states[META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND] =
- META_BUTTON_STATE_NORMAL;
- button_states[META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND] =
- META_BUTTON_STATE_NORMAL;
- button_states[META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND] =
- button_states[META_BUTTON_TYPE_MINIMIZE];
- button_states[META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND] =
- button_states[META_BUTTON_TYPE_MAXIMIZE];
- button_states[META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND] =
- button_states[META_BUTTON_TYPE_CLOSE];
-
meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
META_CORE_GET_FRAME_FLAGS, &flags,
META_CORE_GET_FRAME_TYPE, &type,