always align fullscreen windows to top, as we do with maximized windows.

2002-10-01  Havoc Pennington  <hp@pobox.com>

	* src/window.c (constrain_position): always align fullscreen
	windows to top, as we do with maximized windows.
This commit is contained in:
Havoc Pennington 2002-10-01 13:17:45 +00:00 committed by Havoc Pennington
parent 407ec7b495
commit 437093dee0
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-10-01 Havoc Pennington <hp@pobox.com>
* src/window.c (constrain_position): always align fullscreen
windows to top, as we do with maximized windows.
2002-10-01 Stanislav Brabec <sbrabec@suse.cz>
* configure.in: Added cs to ALL_LINGUAS.

View File

@ -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)
{