Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344887

Summary: Setting offsetX/Y in DragSourceEvent dows not work on linux
Product: [Eclipse Project] Platform Reporter: flo
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 4.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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+).