-
Bug
-
Resolution: Fixed
-
P3
-
internal, 21
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8335477 | 17.0.13-oracle | Harshitha Onkar | P3 | Resolved | Fixed | b01 |
JDK-8336306 | 17.0.13 | Matthias Baesken | P3 | Resolved | Fixed | b01 |
JDK-8337289 | 11.0.26-oracle | Harshitha Onkar | P3 | Resolved | Fixed | b01 |
JDK-8338355 | 8u441 | Renjith Kannath Pariyangad | P3 | Resolved | Fixed | b01 |
Root cause:
When we are trying perform DnD operation from XWayland to native Wayland window, it provides some dummy window under the cursor.
From my testing it is always has 0x600002 id:
$ xprop -id 0x600002
XdndAware(ATOM) = BITMAP
It has only XdndAware property and nothing else. But our code is picky when it is selecting the target window:
https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java#L399
https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.desktop/unix/classes/sun/awt/X11/XlibUtil.java#L318
It only accepts windows only with WM_STATE property set, so it prevents drag to initiate.
Accepting this window from Wayland allows to perform drop.
- backported by
-
JDK-8335477 [XWayland] Drag and Drop does not work in java -> wayland app direction
- Resolved
-
JDK-8336306 [XWayland] Drag and Drop does not work in java -> wayland app direction
- Resolved
-
JDK-8337289 [XWayland] Drag and Drop does not work in java -> wayland app direction
- Resolved
-
JDK-8338355 [XWayland] Drag and Drop does not work in java -> wayland app direction
- Resolved
- is cloned by
-
JDK-8281612 [XWayland] DnD drop performs to a wrong window from X11 client on Wayland
- Closed
- relates to
-
JDK-8333310 [XWayland] Drag and Drop doesn't work in XWayland -> Wayland direction on Gnome 46
- Closed
- links to
-
Commit openjdk/jdk/73352b68
-
Commit(master) openjdk/jdk17u-dev/5ad9e24f
-
Review openjdk/jdk/14266
-
Review(master) openjdk/jdk17u-dev/2705