save unmaximized part of client root coords
svn path=/trunk/; revision=3375
This commit is contained in:
parent
d0523744b7
commit
6fa4345514
@ -1,3 +1,8 @@
|
|||||||
|
2007-11-06 Peter Bloomfield <pbloomfield@bellsouth.net>
|
||||||
|
|
||||||
|
* src/window.c (meta_window_move_resize_internal): save
|
||||||
|
unmaximized part of client root coords.
|
||||||
|
|
||||||
2007-11-06 Peter Bloomfield <pbloomfield@bellsouth.net>
|
2007-11-06 Peter Bloomfield <pbloomfield@bellsouth.net>
|
||||||
|
|
||||||
* src/window.c (meta_window_move_resize_internal): do not save
|
* src/window.c (meta_window_move_resize_internal): do not save
|
||||||
|
20
src/window.c
20
src/window.c
@ -3481,8 +3481,24 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
* we want user_rect to reflect user position/size changes OR the initial
|
* we want user_rect to reflect user position/size changes OR the initial
|
||||||
* placement of the window.
|
* placement of the window.
|
||||||
*/
|
*/
|
||||||
if ((is_user_action || !window->placed) && !META_WINDOW_MAXIMIZED (window))
|
if (is_user_action || !window->placed)
|
||||||
meta_window_get_client_root_coords (window, &window->user_rect);
|
{
|
||||||
|
MetaRectangle user_rect;
|
||||||
|
|
||||||
|
meta_window_get_client_root_coords (window, &user_rect);
|
||||||
|
|
||||||
|
if (!window->maximized_horizontally)
|
||||||
|
{
|
||||||
|
window->user_rect.x = user_rect.x;
|
||||||
|
window->user_rect.width = user_rect.width;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!window->maximized_vertically)
|
||||||
|
{
|
||||||
|
window->user_rect.y = user_rect.y;
|
||||||
|
window->user_rect.height = user_rect.height;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (need_move_frame || need_resize_frame ||
|
if (need_move_frame || need_resize_frame ||
|
||||||
need_move_client || need_resize_client)
|
need_move_client || need_resize_client)
|
||||||
|
Loading…
Reference in New Issue
Block a user