mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Don't try to force a window onscreen by more than its width. Fix for
2003-03-14 Rob Adams <robadams@ucla.edu> * contraints.c (get_outermost_screen_positions): Don't try to force a window onscreen by more than its width. Fix for #94815.
This commit is contained in:
parent
67cbbeb6c1
commit
2d662f67a5
@ -1,3 +1,8 @@
|
|||||||
|
2003-03-14 Rob Adams <robadams@ucla.edu>
|
||||||
|
|
||||||
|
* contraints.c (get_outermost_screen_positions): Don't try to
|
||||||
|
force a window onscreen by more than its width. Fix for #94815.
|
||||||
|
|
||||||
2003-03-13 Rob Adams <robadams@ucla.edu>
|
2003-03-13 Rob Adams <robadams@ucla.edu>
|
||||||
|
|
||||||
Make it so that the alt-tabbing won't try to go to a minimized
|
Make it so that the alt-tabbing won't try to go to a minimized
|
||||||
|
@ -352,10 +352,11 @@ get_outermost_onscreen_positions (MetaWindow *window,
|
|||||||
int *bottommost_y)
|
int *bottommost_y)
|
||||||
{
|
{
|
||||||
if (leftmost_x)
|
if (leftmost_x)
|
||||||
*leftmost_x = info->nw_x + TITLEBAR_LENGTH_ONSCREEN - orig->width;
|
*leftmost_x = info->nw_x - orig->width +
|
||||||
|
MIN (TITLEBAR_LENGTH_ONSCREEN, orig->width);
|
||||||
|
|
||||||
if (rightmost_x)
|
if (rightmost_x)
|
||||||
*rightmost_x = info->se_x - TITLEBAR_LENGTH_ONSCREEN;
|
*rightmost_x = info->se_x - MIN (TITLEBAR_LENGTH_ONSCREEN, orig->width);
|
||||||
|
|
||||||
if (topmost_y)
|
if (topmost_y)
|
||||||
*topmost_y = info->nw_y + info->fgeom.top_height;
|
*topmost_y = info->nw_y + info->fgeom.top_height;
|
||||||
@ -368,7 +369,8 @@ get_outermost_onscreen_positions (MetaWindow *window,
|
|||||||
if (window->frame)
|
if (window->frame)
|
||||||
*bottommost_y = info->se_y;
|
*bottommost_y = info->se_y;
|
||||||
else
|
else
|
||||||
*bottommost_y = info->se_y - TITLEBAR_LENGTH_ONSCREEN;
|
*bottommost_y = info->se_y -
|
||||||
|
MIN (TITLEBAR_LENGTH_ONSCREEN, orig->height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user