compositor: Move tiling preview management to MetaWindowDrag

And release MetaDisplay from handling this management. Window tiling
previews are only triggered from window drags, and are implicitly tied
to them.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
Carlos Garnacho
2022-10-29 00:29:45 +02:00
committed by Marge Bot
parent f04d84de65
commit c6d23f67f0
4 changed files with 108 additions and 120 deletions

View File

@ -2946,7 +2946,6 @@ meta_window_tile (MetaWindow *window,
directions = META_MAXIMIZE_VERTICAL;
meta_window_maximize_internal (window, directions, NULL);
meta_display_update_tile_preview (window->display, FALSE);
window_drag =
meta_compositor_get_current_window_drag (window->display->compositor);