Integrated: 8274751: Drag And Drop hangs on Windows

Dmitry Markov dmarkov at openjdk.java.net
Mon Jan 24 10:59:10 UTC 2022


On Tue, 18 Jan 2022 12:51:56 GMT, Dmitry Markov <dmarkov at openjdk.org> wrote:

> When an object is moved from one window (DnD source) to another window (DnD target) the first window may also be considered as a DnD target and the native OS sends corresponding events to it. That event processing clears isInDoDragDropLoop flag, which is currently used to indicate DnD operation, and causes a hang.
> 
> Fix:
> It is necessary to distinguish events related to the DnD source and events related to the DnD target, (i.e. use two indication flags).
> 
> Testing:
> mach5 green

This pull request has now been integrated.

Changeset: 7a0a6c95
Author:    Dmitry Markov <dmarkov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7a0a6c95a53c6cb3340328d6543a97807320b740
Stats:     19 lines in 4 files changed: 2 ins; 0 del; 17 mod

8274751: Drag And Drop hangs on Windows

Reviewed-by: aivanov, prr, serb

-------------

PR: https://git.openjdk.java.net/jdk/pull/7125



More information about the client-libs-dev mailing list