Skip to content
  • Chun-wei Fan's avatar
    gdkdrag-win32.c: Fix drag surface positioning · e35490ba
    Chun-wei Fan authored
    Determine the root_x and root_y coordinates of the drag surface by
    relying on the coordinates of the surface where the drag is being
    carried out, plus the coordinates that we receive from the drag event,
    which is in-line with what the X11 backend does.
    
    This will prevent the drag surface from being initially drawn at the
    correct position, but jumping towards the top-left corner of the screen
    shortly afterwards.
    
    The DnD support will still need some more updates to function correctly
    on Windows, but at least this is a small improvement.
    
    Fixes issue #3798.
    e35490ba