summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-07-10 03:23:12 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-07-10 03:23:12 +0000
commit7d068e6909b11453cc6d98574c201d0ea63a8f3e (patch)
tree07a3f7beeda1c10aae810bb52697aea8a6e9e19f /src/window.c
parent7593c6fdee030c54604195bece9baf6c2344c918 (diff)
downloadmetacity-7d068e6909b11453cc6d98574c201d0ea63a8f3e.tar.gz
metacity-7d068e6909b11453cc6d98574c201d0ea63a8f3e.tar.bz2
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.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index 690f3fc..838c958 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
{