compositor: Add method to update MetaWindowDrag after resizes

Since SSD X11 windows require synchronization between frame and client
windows on resizes, updates do not always happen immediately but in
control of external factors (i.e. when both windows become to have
a coherent size).

This method will be used to update the window position between
resize/sync operations.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
Carlos Garnacho 2022-10-21 10:59:32 +02:00 committed by Marge Bot
parent 14006adf6f
commit e6d0e0fda6
2 changed files with 11 additions and 0 deletions

View File

@ -1774,3 +1774,12 @@ meta_window_drag_begin (MetaWindowDrag *window_drag,
return TRUE;
}
void
meta_window_drag_update_resize (MetaWindowDrag *window_drag)
{
update_resize (window_drag,
window_drag->last_edge_resistance_flags,
window_drag->latest_motion_x,
window_drag->latest_motion_y);
}

View File

@ -37,4 +37,6 @@ gboolean meta_window_drag_begin (MetaWindowDrag *drag,
void meta_window_drag_end (MetaWindowDrag *drag);
void meta_window_drag_update_resize (MetaWindowDrag *drag);
#endif /* META_WINDOW_DRAG_H */