reset drag state after shaking loose or reattaching. Fix for #132625.

2004-02-16  Rob Adams  <readams@readams.net>

	* src/window.c (update_move): reset drag state after shaking loose
	or reattaching.  Fix for #132625.
This commit is contained in:
Rob Adams 2004-02-16 19:01:25 +00:00 committed by Rob Adams
parent 88ea02a77a
commit ad65847d7d
2 changed files with 28 additions and 19 deletions

View File

@ -1,3 +1,8 @@
2004-02-16 Rob Adams <readams@readams.net>
* src/window.c (update_move): reset drag state after shaking loose
or reattaching. Fix for #132625.
2004-02-15 Anders Carlsson <andersca@gnome.org>
* src/menu.c (meta_window_menu_new): Actually translate a message,

View File

@ -5900,8 +5900,10 @@ update_move (MetaWindow *window,
window->display->grab_initial_window_pos.y += window->frame->child_y / 2;
}
window->saved_rect.x = window->display->grab_initial_window_pos.x-dx;
window->saved_rect.y = window->display->grab_initial_window_pos.y-dy;
window->saved_rect.x = window->display->grab_initial_window_pos.x;
window->saved_rect.y = window->display->grab_initial_window_pos.y;
window->display->grab_anchor_root_x = x;
window->display->grab_anchor_root_y = y;
meta_window_unmaximize (window);
@ -5946,6 +5948,8 @@ update_move (MetaWindow *window,
}
window->display->grab_initial_window_pos = work_area;
window->display->grab_anchor_root_x = x;
window->display->grab_anchor_root_y = y;
window->shaken_loose = FALSE;
meta_window_maximize (window);