Bug 572615

Summary: [Wayland] DnD does not generate dragOperationChanged event
Product: [Eclipse Project] Platform Reporter: Phil Beauvoir <p.beauvoir>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, sdamrong, ts-swt
Version: 4.18   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Modified Snippet91 none

Description Phil Beauvoir CLA 2021-04-06 06:35:42 EDT
Ubuntu 20.10 running Wayland
Eclipse 4.18

When performing a DnD operation with a DropTargetListener, pressing a modifier key (Ctrl) should generate a dragOperationChanged event. This is not being generated on Wayland.

Run Snippet91 [0] with the following lines added so that the event is logged to the console:

@Override
public void dragOperationChanged(DropTargetEvent event)
    System.out.println(event);
}

- Run the Snippet
- Select a tree leaf and start a drag operation
- While dragging press the Ctrl key a few times

Under Wayland the dragOperationChanged event is not generated.


[0] https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet91.java
Comment 1 Phil Beauvoir CLA 2021-04-06 06:37:37 EDT
Created attachment 286043 [details]
Modified Snippet91

Modified Snippet91 with logging.
Comment 2 Phil Beauvoir CLA 2021-04-06 09:28:58 EDT
> Ubuntu 20.10 running Wayland

Sorry, that should be Ubuntu 20.04.
Comment 3 Andrey Loskutov CLA 2021-04-06 11:31:02 EDT
Can you please try with nightly 4.20 SDK build? 4.18 is not the latest version.
Comment 4 Phil Beauvoir CLA 2021-04-06 12:44:34 EDT
(In reply to Andrey Loskutov from comment #3)
> Can you please try with nightly 4.20 SDK build? 4.18 is not the latest
> version.

Tried it with I20210405-1800 and the problem is still there.

Also tried with Ubuntu Wayland 21.04 (beta). Same.