tiling: Skip the resize effect for tiled windows during user grabs.
meta_window_tile gets called by the grabbed window's match during tile resizing. These incremental changes don't need to be animated. Closes: #2246 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2579>
This commit is contained in:
parent
b1e08f683d
commit
559e6ff327
@ -2912,7 +2912,6 @@ meta_window_tile (MetaWindow *window,
|
|||||||
MetaTileMode tile_mode)
|
MetaTileMode tile_mode)
|
||||||
{
|
{
|
||||||
MetaMaximizeFlags directions;
|
MetaMaximizeFlags directions;
|
||||||
MetaRectangle old_frame_rect, old_buffer_rect;
|
|
||||||
|
|
||||||
g_return_if_fail (META_IS_WINDOW (window));
|
g_return_if_fail (META_IS_WINDOW (window));
|
||||||
|
|
||||||
@ -2941,12 +2940,17 @@ meta_window_tile (MetaWindow *window,
|
|||||||
/* Setup the edge constraints */
|
/* Setup the edge constraints */
|
||||||
update_edge_constraints (window);
|
update_edge_constraints (window);
|
||||||
|
|
||||||
meta_window_get_frame_rect (window, &old_frame_rect);
|
if (!window->tile_match || window->tile_match != window->display->grab_window)
|
||||||
meta_window_get_buffer_rect (window, &old_buffer_rect);
|
{
|
||||||
|
MetaRectangle old_frame_rect, old_buffer_rect;
|
||||||
|
|
||||||
meta_compositor_size_change_window (window->display->compositor, window,
|
meta_window_get_frame_rect (window, &old_frame_rect);
|
||||||
META_SIZE_CHANGE_MAXIMIZE,
|
meta_window_get_buffer_rect (window, &old_buffer_rect);
|
||||||
&old_frame_rect, &old_buffer_rect);
|
|
||||||
|
meta_compositor_size_change_window (window->display->compositor, window,
|
||||||
|
META_SIZE_CHANGE_MAXIMIZE,
|
||||||
|
&old_frame_rect, &old_buffer_rect);
|
||||||
|
}
|
||||||
|
|
||||||
meta_window_move_resize_internal (window,
|
meta_window_move_resize_internal (window,
|
||||||
(META_MOVE_RESIZE_MOVE_ACTION |
|
(META_MOVE_RESIZE_MOVE_ACTION |
|
||||||
|
Loading…
Reference in New Issue
Block a user