mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -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>
|
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
|
||||||
|
13
src/place.c
13
src/place.c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user