From 437093dee009be3f91b7fde108f2e2b71bf7308f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 1 Oct 2002 13:17:45 +0000 Subject: [PATCH] always align fullscreen windows to top, as we do with maximized windows. 2002-10-01 Havoc Pennington * src/window.c (constrain_position): always align fullscreen windows to top, as we do with maximized windows. --- ChangeLog | 5 +++++ src/window.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c7b78473e..c69c5db7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-01 Havoc Pennington + + * src/window.c (constrain_position): always align fullscreen + windows to top, as we do with maximized windows. + 2002-10-01 Stanislav Brabec * configure.in: Added cs to ALL_LINGUAS. diff --git a/src/window.c b/src/window.c index 8e301a1d0..64b8ee2b7 100644 --- a/src/window.c +++ b/src/window.c @@ -5686,15 +5686,12 @@ constrain_position (MetaWindow *window, * the screen area. */ x += (xinerama->width - window->rect.width) / 2; - y += (xinerama->height - window->rect.height) / 2; /* If the window is somehow larger than the screen be paranoid * and fix the resulting negative coords */ if (x < xinerama->x_origin) x = xinerama->x_origin; - if (y < xinerama->y_origin) - y = xinerama->y_origin; } else if (window->maximized) {