mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
disable onscreen resize constraints for right, left, and bottom, since
2003-10-06 Rob Adams <readams@readams.net> * src/constraints.c (constraint_onscreen_*_func): disable onscreen resize constraints for right, left, and bottom, since there is no way to violate onscreen constraints by resizing in these directions and the code to implement the constraints made some incorrect assumptions. Fix for #120701, #120756, #123165, #123631, #123838.
This commit is contained in:
parent
481accd6bd
commit
6d7d586f3c
@ -1,3 +1,12 @@
|
|||||||
|
2003-10-06 Rob Adams <readams@readams.net>
|
||||||
|
|
||||||
|
* src/constraints.c (constraint_onscreen_*_func): disable onscreen
|
||||||
|
resize constraints for right, left, and bottom, since there is no
|
||||||
|
way to violate onscreen constraints by resizing in these
|
||||||
|
directions and the code to implement the constraints made some
|
||||||
|
incorrect assumptions. Fix for #120701, #120756, #123165,
|
||||||
|
#123631, #123838.
|
||||||
|
|
||||||
2003-10-06 Žygimantas Beručka <uid0@tuxfamily.org>
|
2003-10-06 Žygimantas Beručka <uid0@tuxfamily.org>
|
||||||
|
|
||||||
* configure.in: Added "lt" to ALL_LINGUAS
|
* configure.in: Added "lt" to ALL_LINGUAS
|
||||||
|
@ -559,16 +559,9 @@ constraint_onscreen_bottom_func (MetaWindow *window,
|
|||||||
const MetaRectangle *orig,
|
const MetaRectangle *orig,
|
||||||
int *y_delta)
|
int *y_delta)
|
||||||
{
|
{
|
||||||
int max_dy;
|
/* no way to resize off the bottom so that constraints are
|
||||||
int bottommost_y;
|
violated */
|
||||||
|
return;
|
||||||
get_outermost_onscreen_positions (window, info, orig, 0, *y_delta,
|
|
||||||
NULL, NULL, NULL, &bottommost_y);
|
|
||||||
|
|
||||||
max_dy = bottommost_y - orig->y;
|
|
||||||
|
|
||||||
if (*y_delta > max_dy)
|
|
||||||
*y_delta = max_dy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -595,16 +588,9 @@ constraint_onscreen_left_func (MetaWindow *window,
|
|||||||
const MetaRectangle *orig,
|
const MetaRectangle *orig,
|
||||||
int *x_delta)
|
int *x_delta)
|
||||||
{
|
{
|
||||||
int min_dx;
|
/* no way to resize off the sides so that constraints are violated
|
||||||
int leftmost_x;
|
*/
|
||||||
|
return;
|
||||||
get_outermost_onscreen_positions (window, info, orig, *x_delta, 0,
|
|
||||||
&leftmost_x, NULL, NULL, NULL);
|
|
||||||
|
|
||||||
min_dx = leftmost_x - orig->x;
|
|
||||||
|
|
||||||
if (*x_delta < min_dx)
|
|
||||||
*x_delta = min_dx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -613,16 +599,9 @@ constraint_onscreen_right_func (MetaWindow *window,
|
|||||||
const MetaRectangle *orig,
|
const MetaRectangle *orig,
|
||||||
int *x_delta)
|
int *x_delta)
|
||||||
{
|
{
|
||||||
int max_dx;
|
/* no way to resize off the sides so that constraints are violated
|
||||||
int rightmost_x;
|
*/
|
||||||
|
return;
|
||||||
get_outermost_onscreen_positions (window, info, orig, *x_delta, 0,
|
|
||||||
NULL, &rightmost_x, NULL, NULL);
|
|
||||||
|
|
||||||
max_dx = rightmost_x - orig->x;
|
|
||||||
|
|
||||||
if (*x_delta > max_dx)
|
|
||||||
*x_delta = max_dx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -631,16 +610,9 @@ constraint_onscreen_hcenter_func (MetaWindow *window,
|
|||||||
const MetaRectangle *orig,
|
const MetaRectangle *orig,
|
||||||
int *x_delta)
|
int *x_delta)
|
||||||
{
|
{
|
||||||
int max_dx;
|
/* no way to resize off the sides so that constraints are violated
|
||||||
int leftmost_x;
|
*/
|
||||||
|
return;
|
||||||
get_outermost_onscreen_positions (window, info, orig, *x_delta, 0,
|
|
||||||
&leftmost_x, NULL, NULL, NULL);
|
|
||||||
|
|
||||||
max_dx = orig->x - leftmost_x;
|
|
||||||
|
|
||||||
if (*x_delta > max_dx)
|
|
||||||
*x_delta = max_dx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user