From 115c086eb906530f2c72f3cbb7ec7db1f572ae3a Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 22 Apr 2002 03:10:53 +0000 Subject: [PATCH] never revert to user_rect.width, user_rect.height. Maybe fixes assorted 2002-04-21 Havoc Pennington * 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. --- ChangeLog | 6 ++++++ src/window.c | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d01fde5e..d5243dda4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-04-21 Havoc Pennington + + * 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 * src/iconcache.c (scaled_from_pixdata): Add padding if diff --git a/src/window.c b/src/window.c index 4d3093e59..2f49c90f7 100644 --- a/src/window.c +++ b/src/window.c @@ -2240,12 +2240,16 @@ meta_window_move_resize_now (MetaWindow *window) * the user had the window */ 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, - window->user_has_move_resized ? - window->user_rect.width : window->rect.width, - window->user_has_move_resized ? - window->user_rect.height : window->rect.height); + window->rect.width, + window->rect.height); }