Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6388028

Drop cursor flashes to NO_DROP temporarily when changing drop action

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      When the user changes their mouse drag gesture with modifiers, the drag and drop mouse cursor temporarily flashes to NO_DROP before going to the right one. Test case:

      (This is on Windows XP - don't know about other platforms)

      - Launch SwingSet2
      - On the Options menu, select "Enable Drag Support"
      - In the internal frames demo, select text "Frame" in the text field labelled "Frame title"
      - Initiate a drag and drag to the right of the text.
      - The MOVE DnD cursor is shown
      - Press down Control to select a COPY action
      - Before the COPY cursor is shown, it quickly flashes to NO_DROP cursor
      - Release Control. It quickly flashes to NO_DROP again before returning to MOVE.
      - This happens when dragging from Java into native apps too and is very repeatable (only occasionally does the flash not happen).

      A little debugging code in DragSourceContext suggests that updateCurrentCursor is being called once with 0 dropOp and 0 targetAct. This is wrong.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                denis Denis Fokin (Inactive)
                Reporter:
                shickeysunw Shannon Hickey (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: