Skip to main content

judged_location

Function judged_location 

Source
pub fn judged_location(
    state: &AppState,
    seat: Point<f64, Logical>,
) -> Point<f64, Logical>
Expand description

Where a button or a scroll is judged, and where a relative delta adds to: where the policy took the last motion while it keeps taking pointer events, else the seat’s pointer. The seat’s pointer follows a motion the policy takes only while no client holds a pointer grab, so with a client’s popup grab held a click on the policy’s menu would otherwise land where the pointer stood before the menu took it, and every delta of a frame drag, whose press grabs for the client, would start from where the drag began.