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

Bug 484179

Summary: Overlay location is wrong while arranging views by Drag&Drop if window is partially outside monitor bounds
Product: [Eclipse Project] Platform Reporter: Yurii Polek <yury.polek>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, patrick.pollo.guilbert, psuzzi, yury.polek
Version: 4.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Yurii Polek CLA 2015-12-11 04:47:58 EST
Created attachment 258601 [details]
screenshot

Reproducible with CentOS 6.6 (GNOME 2.28.2)

Steps to reproduce:
1. Move Eclipse window to be partially outside monitor bounds.
2. Try to move any view by DnD.
Notice grid overlay location is wrong. (See attached screenshot)
Comment 1 Yurii Polek CLA 2015-12-11 10:55:12 EST
Overlay location is set in org.eclipse.e4.ui.workbench.addons.dndaddon.SplitFeedbackOverlay by calling feedbackShell.setBounds(dragShell.getBounds()).
feedbackShell's location is wrong because org.eclipse.swt.internal.gtk.OS.gtk_window_move(long, int, int) (called from Shell#setBounds) can't move shell outside screen bounds.
Comment 2 Patrick-Jeffrey Pollo Guilbert CLA 2016-05-04 17:33:16 EDT
This seems to be a duplicate of https://bugs.eclipse.org/bugs/show_bug.cgi?id=492842 which now has a working workaround in the latest integration build.
Comment 3 Lars Vogel CLA 2016-05-05 04:20:10 EDT

*** This bug has been marked as a duplicate of bug 492842 ***