mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
compositor: Add window/grab_op getters to MetaWindowDrag
This will be useful in porting, since there's still places that check the current grab operation, or check a window against the currently dragged window. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
parent
fc4287cd20
commit
db1c64fe06
@ -1783,3 +1783,15 @@ meta_window_drag_update_resize (MetaWindowDrag *window_drag)
|
||||
window_drag->latest_motion_x,
|
||||
window_drag->latest_motion_y);
|
||||
}
|
||||
|
||||
MetaWindow *
|
||||
meta_window_drag_get_window (MetaWindowDrag *window_drag)
|
||||
{
|
||||
return window_drag->effective_grab_window;
|
||||
}
|
||||
|
||||
MetaGrabOp
|
||||
meta_window_drag_get_grab_op (MetaWindowDrag *window_drag)
|
||||
{
|
||||
return window_drag->grab_op;
|
||||
}
|
||||
|
@ -39,4 +39,8 @@ void meta_window_drag_end (MetaWindowDrag *drag);
|
||||
|
||||
void meta_window_drag_update_resize (MetaWindowDrag *drag);
|
||||
|
||||
MetaWindow * meta_window_drag_get_window (MetaWindowDrag *window_drag);
|
||||
|
||||
MetaGrabOp meta_window_drag_get_grab_op (MetaWindowDrag *window_drag);
|
||||
|
||||
#endif /* META_WINDOW_DRAG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user