Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344887 - Setting offsetX/Y in DragSourceEvent dows not work on linux
Summary: Setting offsetX/Y in DragSourceEvent dows not work on linux
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-05-05 15:13 EDT by flo CLA
Modified: 2019-02-21 15:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flo CLA 2011-05-05 15:13:36 EDT
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
Comment 1 Eric Williams CLA 2018-07-06 13:41:17 EDT
Can you provide a snippet for this issue?
Comment 2 Eric Williams CLA 2019-02-21 15:35:07 EST
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+).