Skip to content
  • Jasper St. Pierre's avatar
    gtkdnd: Introduce a new API for more accurate drag origin data · 030b62d1
    Jasper St. Pierre authored
    When trying to drag, we currently the position of the first motion
    event to determine where the drag came from. This might be alright
    in the case of the old animation, but the data will be inaccurate
    if the user has moved the pointer quite a bit since pressing the
    cursor to start dragging. While we could monkey patch the GdkEvent
    at the widget layer, this is unintuitive and strange.
    
    Add a new API that takes a set of pointer coordinates describing
    the origin of the drag. Additionally, adapt most widgets to use
    it and use it with correct coordinates.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705605
    030b62d1