1
0
Fork 0

never revert to user_rect.width, user_rect.height. Maybe fixes assorted

2002-04-21  Havoc Pennington  <hp@pobox.com>

	* src/window.c (meta_window_move_resize_now): never revert to
	user_rect.width, user_rect.height. Maybe fixes assorted resize
	screwups e.g. with gnome-terminal.
This commit is contained in:
Havoc Pennington 2002-04-22 03:10:53 +00:00 committed by Havoc Pennington
parent 6603ee6084
commit 115c086eb9
2 changed files with 15 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2002-04-21 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_move_resize_now): never revert to
user_rect.width, user_rect.height. Maybe fixes assorted resize
screwups e.g. with gnome-terminal.
2002-04-21 Anders Carlsson <andersca@gnu.org> 2002-04-21 Anders Carlsson <andersca@gnu.org>
* src/iconcache.c (scaled_from_pixdata): Add padding if * src/iconcache.c (scaled_from_pixdata): Add padding if

View file

@ -2240,12 +2240,16 @@ meta_window_move_resize_now (MetaWindow *window)
* the user had the window * the user had the window
*/ */
meta_window_get_user_position (window, &x, &y); meta_window_get_user_position (window, &x, &y);
/* This used to use the user width/height if the user hadn't resized,
* but it turns out that breaks things pretty often, because configure
* requests from the app or size hints changes from the app frequently
* reflect user actions such as changing terminal font size
* or expanding a disclosure triangle.
*/
meta_window_move_resize (window, FALSE, x, y, meta_window_move_resize (window, FALSE, x, y,
window->user_has_move_resized ? window->rect.width,
window->user_rect.width : window->rect.width, window->rect.height);
window->user_has_move_resized ?
window->user_rect.height : window->rect.height);
} }