diff --git a/ChangeLog b/ChangeLog index 85701963d..ce0fe439c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-07-09 Havoc Pennington + + * 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 * src/tabpopup.c (selectable_workspace_new): increase the size of diff --git a/src/window.c b/src/window.c index 690f3fc9a..838c95867 100644 --- a/src/window.c +++ b/src/window.c @@ -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 {