Patch from Thomas Andersen to return the window to maximized state if the

2006-08-07  Elijah Newren  <newren gmail com>

	* src/keybindings.c (process_keyboard_move_grab): Patch from
	Thomas Andersen to return the window to maximized state if the
	window was "shaken loose" from maximized state during a resize but
	the resize is later aborted.  #346719.
This commit is contained in:
Elijah Newren 2006-08-07 19:24:41 +00:00 committed by Elijah Newren
parent 1dd78e38ff
commit d4973e8d1b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-08-07 Elijah Newren <newren gmail com>
* src/keybindings.c (process_keyboard_move_grab): Patch from
Thomas Andersen to return the window to maximized state if the
window was "shaken loose" from maximized state during a resize but
the resize is later aborted. #346719.
2006-08-07 Elijah Newren <newren gmail com> 2006-08-07 Elijah Newren <newren gmail com>
Patch from Vytautas Liuolia to react to _NET_STARTUP_ID changes, Patch from Vytautas Liuolia to react to _NET_STARTUP_ID changes,

View File

@ -1768,13 +1768,17 @@ process_keyboard_move_grab (MetaDisplay *display,
* since in wireframe we always moveresize at the end * since in wireframe we always moveresize at the end
* of the grab only. * of the grab only.
*/ */
if (!display->grab_wireframe_active) if (!display->grab_wireframe_active && !window->shaken_loose)
meta_window_move_resize (display->grab_window, meta_window_move_resize (display->grab_window,
TRUE, TRUE,
display->grab_initial_window_pos.x, display->grab_initial_window_pos.x,
display->grab_initial_window_pos.y, display->grab_initial_window_pos.y,
display->grab_initial_window_pos.width, display->grab_initial_window_pos.width,
display->grab_initial_window_pos.height); display->grab_initial_window_pos.height);
if(window->shaken_loose)
meta_window_maximize (window,
META_MAXIMIZE_HORIZONTAL |
META_MAXIMIZE_VERTICAL);
display->grab_was_cancelled = TRUE; display->grab_was_cancelled = TRUE;
} }