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> 2007-04-11 Elijah Newren <newren gmail com>
Make sure apps have correct info about their coordinates, even on Make sure apps have correct info about their coordinates, even on

View File

@ -924,11 +924,14 @@ meta_window_place (MetaWindow *window,
&workarea); &workarea);
meta_window_get_outer_rect (window, &outer); meta_window_get_outer_rect (window, &outer);
if (outer.width >= workarea.width) /* If the window is bigger than the screen, then automaximize. Do NOT
window->maximize_horizontally_after_placement = TRUE; * auto-maximize the directions independently. See #419810.
*/
if (outer.height >= workarea.height) if (outer.width >= workarea.width && outer.height >= workarea.height)
window->maximize_vertically_after_placement = TRUE; {
window->maximize_horizontally_after_placement = TRUE;
window->maximize_vertically_after_placement = TRUE;
}
} }
done_check_denied_focus: done_check_denied_focus: