mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
don't center vertically for maximized windows that don't fill the screen,
2002-07-09 Havoc Pennington <hp@pobox.com> * src/window.c (constrain_position): don't center vertically for maximized windows that don't fill the screen, just leave them at the top.
This commit is contained in:
parent
7593c6fdee
commit
7d068e6909
@ -1,3 +1,9 @@
|
|||||||
|
2002-07-09 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/window.c (constrain_position): don't center vertically for
|
||||||
|
maximized windows that don't fill the screen, just leave them at
|
||||||
|
the top.
|
||||||
|
|
||||||
2002-07-06 Havoc Pennington <hp@pobox.com>
|
2002-07-06 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/tabpopup.c (selectable_workspace_new): increase the size of
|
* src/tabpopup.c (selectable_workspace_new): increase the size of
|
||||||
|
@ -5269,13 +5269,10 @@ constrain_position (MetaWindow *window,
|
|||||||
|
|
||||||
/* If the window's geometry gridding (e.g. for a terminal)
|
/* If the window's geometry gridding (e.g. for a terminal)
|
||||||
* prevents full maximization, center the window within
|
* prevents full maximization, center the window within
|
||||||
* the maximized area.
|
* the maximized area horizontally.
|
||||||
*/
|
*/
|
||||||
x += (work_area.width - window->rect.width -
|
x += (work_area.width - window->rect.width -
|
||||||
(window->frame ? (fgeom->left_width + fgeom->right_width) : 0)) / 2;
|
(window->frame ? (fgeom->left_width + fgeom->right_width) : 0)) / 2;
|
||||||
|
|
||||||
y += (work_area.height - window->rect.height -
|
|
||||||
(window->frame ? (fgeom->top_height + fgeom->bottom_height) : 0)) / 2;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user