Update grab state when we unmaximize so double-clicking doesn't cause

2003-06-20  Rob Adams  <robadams@ucla.edu>

	* src/window.c (meta_window_unmaximize): Update grab state when we
	unmaximize so double-clicking doesn't cause weird window-jumping
	problems.  See #116292.
This commit is contained in:
Rob Adams 2003-06-30 14:49:11 +00:00 committed by Rob Adams
parent 311f435120
commit d08fa29612
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-20 Rob Adams <robadams@ucla.edu>
* src/window.c (meta_window_unmaximize): Update grab state when we
unmaximize so double-clicking doesn't cause weird window-jumping
problems. See #116292.
2003-06-29 Rob Adams <robadams@ucla.edu>
* src/constraints.c (meta_window_constrain): Actually maximize

View File

@ -1855,6 +1855,17 @@ meta_window_unmaximize (MetaWindow *window)
window->maximized = FALSE;
/* When we unmaximize, if we're doing a mouse move also we could
* get the window suddenly jumping to the upper left corner of
* the workspace, since that's where it was when the grab op
* started. So we need to update the grab state.
*/
if (meta_grab_op_is_moving (window->display->grab_op) &&
window->display->grab_window == window)
{
window->display->grab_initial_window_pos = window->saved_rect;
}
meta_window_move_resize (window,
TRUE,
window->saved_rect.x,