mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
407ec7b495
commit
437093dee0
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user