mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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:
parent
1dd78e38ff
commit
d4973e8d1b
@ -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>
|
||||
|
||||
Patch from Vytautas Liuolia to react to _NET_STARTUP_ID changes,
|
||||
|
@ -1768,13 +1768,17 @@ process_keyboard_move_grab (MetaDisplay *display,
|
||||
* since in wireframe we always moveresize at the end
|
||||
* of the grab only.
|
||||
*/
|
||||
if (!display->grab_wireframe_active)
|
||||
if (!display->grab_wireframe_active && !window->shaken_loose)
|
||||
meta_window_move_resize (display->grab_window,
|
||||
TRUE,
|
||||
display->grab_initial_window_pos.x,
|
||||
display->grab_initial_window_pos.y,
|
||||
display->grab_initial_window_pos.width,
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user