do not auto-maximize windows larger than the workarea in only a single

2007-04-12  Elijah Newren  <newren gmail com>

	* src/place.c (meta_window_place): do not auto-maximize windows
	larger than the workarea in only a single direction.  Fixes
	#419810.

svn path=/trunk/; revision=3194
This commit is contained in:
Elijah Newren 2007-04-12 22:25:25 +00:00 committed by Elijah Newren
parent 9ec6dbd5ca
commit bc6996b171
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2007-04-12 Elijah Newren <newren gmail com>
* src/place.c (meta_window_place): do not auto-maximize windows
larger than the workarea in only a single direction. Fixes
#419810.
2007-04-11 Elijah Newren <newren gmail com>
Make sure apps have correct info about their coordinates, even on

View File

@ -924,12 +924,15 @@ meta_window_place (MetaWindow *window,
&workarea);
meta_window_get_outer_rect (window, &outer);
if (outer.width >= workarea.width)
/* If the window is bigger than the screen, then automaximize. Do NOT
* auto-maximize the directions independently. See #419810.
*/
if (outer.width >= workarea.width && outer.height >= workarea.height)
{
window->maximize_horizontally_after_placement = TRUE;
if (outer.height >= workarea.height)
window->maximize_vertically_after_placement = TRUE;
}
}
done_check_denied_focus:
/* If the window is being denied focus and isn't a transient of the