GNOME Bugzilla – Bug 779800
wayland: dnd from java to wayland native get through and end up in another window underneath
Last modified: 2017-03-09 13:22:52 UTC
Description: Follow-up on bug 779757 and bug 763246, using DnD from a Java application (Xwayland) onto a native Wayland application will get through the Wayland native window and end up in some other Xwayland window underneath. How reproducible: Only the first time, further DnD work Steps to reproduce: 1. Have 3 windows as follow: +---------------+ | Java Window |---+ | | | | | |---+ | | | | +---------------+ | | | Wayland native | | +----------------+ | | Xwayland window | +-----------------+ 2. Select some text in the Java window and drop it onto the Wayland native window Actual result: The Dnd ends unp in the XWayland window placed underneath. Again, this is for the first DnD atttempt only.
Created attachment 347557 [details] [review] [PATCH] xwayland: Raise the dnd window each time If the dnd window ends up lower in the overall stack than the window it's supposed to fence, the drop might end up in some other window underneath the expected target window. Maps and raises the dnd window each time it's shown so that it's always placed above.
Review of attachment 347557 [details] [review]: Indeed, quite an oversight...
Comment on attachment 347557 [details] [review] [PATCH] xwayland: Raise the dnd window each time attachment 347557 [details] [review] pushed to git master as commit 4b86af8 - xwayland: Raise the dnd window each time