Bug 572615 - [Wayland] DnD does not generate dragOperationChanged event
Summary: [Wayland] DnD does not generate dragOperationChanged event
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-06 06:35 EDT by Phil Beauvoir CLA
Modified: 2022-07-08 12:08 EDT (History)
3 users (show)

See Also:


Attachments
Modified Snippet91 (4.99 KB, text/plain)
2021-04-06 06:37 EDT, Phil Beauvoir CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.