mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
2592efeee4
commit
3c384d37c6
@ -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
|
||||||
|
22
src/window.c
22
src/window.c
@ -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 = FALSE;
|
|
||||||
else
|
|
||||||
configure_frame_first = TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
configure_frame_first = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* configure frame first if we grow more than we shrink
|
||||||
|
*/
|
||||||
|
size_dx = w - window->rect.width;
|
||||||
|
size_dy = h - window->rect.height;
|
||||||
|
|
||||||
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user