mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
9ec6dbd5ca
commit
bc6996b171
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user