mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
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:
parent
14006adf6f
commit
e6d0e0fda6
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user