Fix reduced resources resize handling for windows with sizing or resizing

2006-01-09  Elijah Newren  <newren@gmail.com>

	Fix reduced resources resize handling for windows with sizing or
	resizing constraints.  #325774.

	* src/display.c (meta_display_end_grab_op): Provide constraints.c
	with the correct gravity information.
This commit is contained in:
Elijah Newren 2006-01-10 05:01:08 +00:00 committed by Elijah Newren
parent d884f9ce8a
commit ae52d731be
2 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2006-01-09 Elijah Newren <newren@gmail.com>
Fix reduced resources resize handling for windows with sizing or
resizing constraints. #325774.
* src/display.c (meta_display_end_grab_op): Provide constraints.c
with the correct gravity information.
2006-01-09 Elijah Newren <newren@gmail.com> 2006-01-09 Elijah Newren <newren@gmail.com>
Be more strict about what is considered a valid region with Be more strict about what is considered a valid region with

View File

@ -3496,12 +3496,19 @@ meta_display_end_grab_op (MetaDisplay *display,
meta_window_end_wireframe (display->grab_window); meta_window_end_wireframe (display->grab_window);
if (!display->grab_was_cancelled) if (!display->grab_was_cancelled)
meta_window_move_resize (display->grab_window, {
TRUE, if (meta_grab_op_is_moving (display->grab_op))
display->grab_wireframe_rect.x, meta_window_move (display->grab_window,
display->grab_wireframe_rect.y, TRUE,
display->grab_wireframe_rect.width, display->grab_wireframe_rect.x,
display->grab_wireframe_rect.height); display->grab_wireframe_rect.y);
if (meta_grab_op_is_resizing (display->grab_op))
meta_window_resize_with_gravity (display->grab_window,
TRUE,
display->grab_wireframe_rect.width,
display->grab_wireframe_rect.height,
meta_resize_gravity_from_grab_op (display->grab_op));
}
meta_window_calc_showing (display->grab_window); meta_window_calc_showing (display->grab_window);
} }