mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -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>
|
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
|
||||||
|
12
src/window.c
12
src/window.c
@ -2241,11 +2241,15 @@ meta_window_move_resize_now (MetaWindow *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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user