** Description changed: - Original report[1]: - ---------- - Description of problem: + [ Impact ] - Unable to perform Drag and Drop using XDND protocol from Xlib - application to application running on Wayland display server natively. + Unable to perform Drag and Drop using from X11 applications running on + XWayland to native Wayland applications. - How reproducible: - always + A set of applications that do not support Wayland and thus must use X11 + on a Wayland desktop is commonly comprised of legacy proprietary apps, + Java-based apps, and Electron-based apps. Those applications would be + unable to drag-and-drop to the rest of the desktop. - Steps to Reproduce: - 1. compile attached file with "gcc XDnDSource.c -o XDnDSource -lX11 && ./XDnDSource". - Attached file is a simple drag source client, written using XDND protocol. - It has single mime-type to transfer: `text-plain`. - 2. try to perform drag and drop starting from black area. - 3. drop to gedit, firefox, etc. - 4. <fail> + Here's the upstream bug report: + https://gitlab.gnome.org/GNOME/mutter/-/issues/3511 - Actual results: + [ Test Plan ] - It fails to find any window having XdndAware property(except for apps running on XWayland), - so it unable to perform drop action. + 1. Log-in to a GNOME Wayland desktop session + 2. Open Terminal + 3. Run `GDK_BACKEND=x11 gnome-calculator` + + this forces the Calculator app to run in X11 mode, + + as if it were one of the legacy apps that do not support Wayland natively + 4. Position Calculator and Terminal side by side + 5. Type something on the Calculator app + 6. Select the text + 7. Drag and drop it into the Terminal window + 8. Verify that the text was inserted in the terminal - Expected results: - Performed drop. + [ Where problems could occur ] - Additional information: + mutter is the component of GNOME driving the screen and inputs, and thus + is a critical component of Ubuntu Desktop. - The same example works for Ubuntu 21.04, Oracle Linux 8u5 on Wayland, but not on Fedora 35. - ---------- + The patch only touches the XWayland drag&drop code, which was already + not working. - The issue was fixed in Gnome 47 (plucky, oracular), but still present in - Gnome 46 (noble). Attached reproducer from the original report. + Regressions could manifest with the user being suddenly logged-out in + the case that GNOME Shell has crashed because of a bug introduced by the + new patch. - Why it is important: + [ Other info ] --- Alexander zvegint...@zvegintsev.alex · 8 months ago Author OpenJDK has only just finished the work to support XWayland, and so the timing of this bug is very unfortunate. It causes a CONFORMANCE test failure, which means that no JDK distribution, from any vendor can claim to support Java in this configuration (Gnome 46). This includes at least Ubuntu 24.04, Fedora 40, Manjaro 24. A fix for this needs to be in place and backported as a Gnome 46 patch for those distros. Related JDK issue https://bugs.openjdk.org/browse/JDK-8333310 Thanks in advance. ----- - [2] - - - [1] https://bugzilla.redhat.com/show_bug.cgi?id=2027569#c0) - [2] https://gitlab.gnome.org/GNOME/mutter/-/issues/3511
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/2097415 Title: Ubuntu 24.04, mutter: drag and drop does not work between x11 and wayland applications Status in Mutter: Fix Released Status in mutter package in Ubuntu: Fix Released Status in mutter source package in Noble: Triaged Status in mutter source package in Oracular: Fix Released Status in mutter source package in Plucky: Fix Released Status in mutter package in Fedora: Won't Fix Bug description: [ Impact ] Unable to perform Drag and Drop using from X11 applications running on XWayland to native Wayland applications. A set of applications that do not support Wayland and thus must use X11 on a Wayland desktop is commonly comprised of legacy proprietary apps, Java-based apps, and Electron-based apps. Those applications would be unable to drag-and-drop to the rest of the desktop. Here's the upstream bug report: https://gitlab.gnome.org/GNOME/mutter/-/issues/3511 [ Test Plan ] 1. Log-in to a GNOME Wayland desktop session 2. Open Terminal 3. Run `GDK_BACKEND=x11 gnome-calculator` + this forces the Calculator app to run in X11 mode, + as if it were one of the legacy apps that do not support Wayland natively 4. Position Calculator and Terminal side by side 5. Type something on the Calculator app 6. Select the text 7. Drag and drop it into the Terminal window 8. Verify that the text was inserted in the terminal [ Where problems could occur ] mutter is the component of GNOME driving the screen and inputs, and thus is a critical component of Ubuntu Desktop. The patch only touches the XWayland drag&drop code, which was already not working. Regressions could manifest with the user being suddenly logged-out in the case that GNOME Shell has crashed because of a bug introduced by the new patch. [ Other info ] --- Alexander zvegint...@zvegintsev.alex · 8 months ago Author OpenJDK has only just finished the work to support XWayland, and so the timing of this bug is very unfortunate. It causes a CONFORMANCE test failure, which means that no JDK distribution, from any vendor can claim to support Java in this configuration (Gnome 46). This includes at least Ubuntu 24.04, Fedora 40, Manjaro 24. A fix for this needs to be in place and backported as a Gnome 46 patch for those distros. Related JDK issue https://bugs.openjdk.org/browse/JDK-8333310 Thanks in advance. ----- To manage notifications about this bug go to: https://bugs.launchpad.net/mutter/+bug/2097415/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp