| Summary: | Setting offsetX/Y in DragSourceEvent dows not work on linux | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | flo |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ericwill |
| Version: | 4.1 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Can you provide a snippet for this issue? No reply in awhile, closing. Please reopen this ticket with a reproducer snippet if the issue reproduces against 4.10 and a modern GTK3 (3.20+). |
Build Identifier: 20110301-1815 I try this: dragSource.addDragListener(new DragSourceAdapter() { public void dragStart(DragSourceEvent event) { event.offsetX=-event.x; event.offsetY=-event.y; event.image = label.getImage(); } The image gets displayed well, but the mouse center is always at the top left corner of the image. I also tries with other values for offsetX/Y: positive values, static values like 100 ... Reproducible: Always