configure frame first if we grow more than we shrink combined in both

2003-11-08  Rob Adams  <readams@readams.net>

	* src/window.c (meta_window_move_resize_internal): configure frame
	first if we grow more than we shrink combined in both dimensions.
	Patch from Soren Sandmann for #108925.
This commit is contained in:
Rob Adams 2003-11-08 17:25:49 +00:00 committed by Rob Adams
parent 2592efeee4
commit 3c384d37c6
2 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,9 @@
2003-11-08 Rob Adams <readams@readams.net>
* src/window.c (meta_window_move_resize_internal): configure frame
first if we grow more than we shrink combined in both dimensions.
Patch from Soren Sandmann for #108925.
2003-11-07 Rob Adams <readams@readams.net> 2003-11-07 Rob Adams <readams@readams.net>
* src/place.c (meta_window_place): use maximize_after_placement to * src/place.c (meta_window_place): use maximize_after_placement to

View File

@ -2272,6 +2272,8 @@ meta_window_move_resize_internal (MetaWindow *window,
gboolean need_resize_frame = FALSE; gboolean need_resize_frame = FALSE;
int frame_size_dx; int frame_size_dx;
int frame_size_dy; int frame_size_dy;
int size_dx;
int size_dy;
gboolean is_configure_request; gboolean is_configure_request;
gboolean do_gravity_adjust; gboolean do_gravity_adjust;
gboolean is_user_action; gboolean is_user_action;
@ -2529,21 +2531,13 @@ meta_window_move_resize_internal (MetaWindow *window,
/* The rest of this function syncs our new size/pos with X as /* The rest of this function syncs our new size/pos with X as
* efficiently as possible * efficiently as possible
*/ */
if (use_static_gravity)
{
int size_dx = w - window->rect.width;
int size_dy = h - window->rect.height;
if ((size_dx + size_dy) >= 0) /* configure frame first if we grow more than we shrink
configure_frame_first = FALSE; */
else size_dx = w - window->rect.width;
configure_frame_first = TRUE; size_dy = h - window->rect.height;
}
else
{
configure_frame_first = FALSE;
}
configure_frame_first = (size_dx + size_dy >= 0);
if (use_static_gravity) if (use_static_gravity)
meta_window_set_gravity (window, StaticGravity); meta_window_set_gravity (window, StaticGravity);