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:
Havoc Pennington 2002-07-10 03:23:12 +00:00 committed by Havoc Pennington
parent 7593c6fdee
commit 7d068e6909
2 changed files with 7 additions and 4 deletions

View File

@ -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>
* src/tabpopup.c (selectable_workspace_new): increase the size of

View File

@ -5269,13 +5269,10 @@ constrain_position (MetaWindow *window,
/* If the window's geometry gridding (e.g. for a terminal)
* prevents full maximization, center the window within
* the maximized area.
* the maximized area horizontally.
*/
x += (work_area.width - window->rect.width -
(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
{