mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
window: Do not restore tiling on unmaximize
When we consider tiling a special case of maximization, it makes more sense to always unmaximize to the normal state rather than restoring a previous tile state. https://bugzilla.gnome.org/show_bug.cgi?id=677565
This commit is contained in:
parent
eb1292ea99
commit
10d53fc7d2
@ -3889,15 +3889,6 @@ void
|
|||||||
meta_window_unmaximize (MetaWindow *window,
|
meta_window_unmaximize (MetaWindow *window,
|
||||||
MetaMaximizeFlags directions)
|
MetaMaximizeFlags directions)
|
||||||
{
|
{
|
||||||
/* Restore tiling if necessary */
|
|
||||||
if (window->tile_mode == META_TILE_LEFT ||
|
|
||||||
window->tile_mode == META_TILE_RIGHT)
|
|
||||||
{
|
|
||||||
window->maximized_horizontally = FALSE;
|
|
||||||
meta_window_tile (window);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
meta_window_unmaximize_internal (window, directions, &window->saved_rect,
|
meta_window_unmaximize_internal (window, directions, &window->saved_rect,
|
||||||
NorthWestGravity);
|
NorthWestGravity);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user