mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
Fallback to NORMAL state after checking for the middle button. Fixes bug
2007-01-27 Bruno Boaventura <brunobol@gnome.org> * src/theme.c (kill_window_question): Fallback to NORMAL state after checking for the middle button. Fixes bug #419043. Patch from Benjamin Berg <benjamin@sipsolutions.net>. svn path=/trunk/; revision=3140
This commit is contained in:
parent
81e32cfa32
commit
0bb8bd4370
@ -1,3 +1,9 @@
|
||||
2007-01-27 Bruno Boaventura <brunobol@gnome.org>
|
||||
|
||||
* src/theme.c (kill_window_question): Fallback to NORMAL state after
|
||||
checking for the middle button. Fixes bug #419043.
|
||||
Patch from Benjamin Berg <benjamin@sipsolutions.net>.
|
||||
|
||||
2007-03-31 Elijah Newren <newren gmail com>
|
||||
|
||||
Clean up event mask handling and meta_create_offscreen_window, to
|
||||
|
10
src/theme.c
10
src/theme.c
@ -3899,11 +3899,6 @@ get_button (MetaFrameStyle *style,
|
||||
parent = parent->parent;
|
||||
}
|
||||
|
||||
/* We fall back to normal if no prelight */
|
||||
if (op_list == NULL &&
|
||||
state == META_BUTTON_STATE_PRELIGHT)
|
||||
return get_button (style, type, META_BUTTON_STATE_NORMAL);
|
||||
|
||||
/* We fall back to middle button backgrounds if we don't
|
||||
* have the ones on the sides
|
||||
*/
|
||||
@ -3920,6 +3915,11 @@ get_button (MetaFrameStyle *style,
|
||||
return get_button (style, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND,
|
||||
state);
|
||||
|
||||
/* We fall back to normal if no prelight */
|
||||
if (op_list == NULL &&
|
||||
state == META_BUTTON_STATE_PRELIGHT)
|
||||
return get_button (style, type, META_BUTTON_STATE_NORMAL);
|
||||
|
||||
return op_list;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user