mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
9615538389
commit
8b924ece14
@ -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
|
||||
|
@ -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, ¤t,
|
||||
(info.xinerama->height - OUTER_HEIGHT (current)),
|
||||
|
Loading…
Reference in New Issue
Block a user