recalculate frame geometry if the window gets maximized after placement,

2003-08-18  Rob Adams  <robadams@ucla.edu>

	* src/constraints.c (meta_window_constrain): recalculate frame
	geometry if the window gets maximized after placement, since it's
	likely to change.  Fix for #120117.
This commit is contained in:
Rob Adams 2003-08-19 01:10:01 +00:00 committed by Rob Adams
parent 9615538389
commit 8b924ece14
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-08-18 Rob Adams <robadams@ucla.edu>
* src/constraints.c (meta_window_constrain): recalculate frame
geometry if the window gets maximized after placement, since it's
likely to change. Fix for #120117.
2003-08-17 Ray Strode <halfline@hawaii.rr.com>
* src/delete.c (meta_window_delete): Use MRU list to find focusing

View File

@ -1348,6 +1348,14 @@ meta_window_constrain (MetaWindow *window,
{
window->maximize_after_placement = FALSE;
meta_window_maximize_internal (window, new);
/* maximization may have changed frame geometry */
if (orig_fgeom && !window->fullscreen)
{
meta_frame_calc_geometry (window->frame,
orig_fgeom);
info.fgeom = *orig_fgeom;
}
}
/* Maximization, fullscreen, etc. are defined as a resize followed by
@ -1356,8 +1364,6 @@ meta_window_constrain (MetaWindow *window,
*/
if (window->fullscreen)
{
int center_x;
current = *new;
constrain_resize_bottom (window, &info, &current,
(info.xinerama->height - OUTER_HEIGHT (current)),