mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
6603ee6084
commit
115c086eb9
@ -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>
|
||||
|
||||
* src/iconcache.c (scaled_from_pixdata): Add padding if
|
||||
|
14
src/window.c
14
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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user