Public bug reported:

Original report[1]:
----------
Description of problem:

Unable to perform Drag and Drop using XDND protocol from Xlib
application to application running on Wayland display server natively.

How reproducible:
always

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>

Actual results:

It fails to find any window having XdndAware property(except for apps running 
on XWayland),
so it unable to perform drop action.

Expected results:
Performed drop.

Additional information:

The same example works for Ubuntu 21.04, Oracle Linux 8u5 on Wayland, but not 
on Fedora 35.
----------

The issue was fixed in Gnome 47 (plucky, oracular), but still present in
Gnome 46 (noble). Attached reproducer from the original report.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2027569#c0)

** Affects: mutter
     Importance: Unknown
         Status: Fix Released

** Affects: mutter (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: mutter (Ubuntu Noble)
     Importance: Undecided
         Status: New

** Affects: mutter (Ubuntu Oracular)
     Importance: Undecided
         Status: Fix Released

** Affects: mutter (Ubuntu Plucky)
     Importance: Undecided
         Status: Fix Released

** Bug watch added: gitlab.gnome.org/GNOME/mutter/-/issues #2042
   https://gitlab.gnome.org/GNOME/mutter/-/issues/2042

** Also affects: mutter via
   https://gitlab.gnome.org/GNOME/mutter/-/issues/2042
   Importance: Unknown
       Status: Unknown

** Also affects: mutter (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: mutter (Ubuntu Oracular)
   Importance: Undecided
       Status: New

** Also affects: mutter (Ubuntu Plucky)
   Importance: Undecided
       Status: New

** Changed in: mutter (Ubuntu Plucky)
       Status: New => Fix Released

** Changed in: mutter (Ubuntu Oracular)
       Status: New => Fix Released

** Description changed:

+ Original report[1]:
+ ----------
  Description of problem:
  
  Unable to perform Drag and Drop using XDND protocol from Xlib
  application to application running on Wayland display server natively.
  
- 
  How reproducible:
  always
  
  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`.
+ 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> 
+ 4. <fail>
  
  Actual results:
  
- It fails to find any window having XdndAware property(except for apps running 
on XWayland), 
+ It fails to find any window having XdndAware property(except for apps running 
on XWayland),
  so it unable to perform drop action.
  
  Expected results:
  Performed drop.
+ 
+ Additional information:
+ 
+ The same example works for Ubuntu 21.04, Oracle Linux 8u5 on Wayland, but not 
on Fedora 35.
+ ----------
+ 
+ The issue was fixed in Gnome 47 (plucky, oracular), but still present in
+ Gnome 46 (noble).
+ 
+ [1] https://bugzilla.redhat.com/show_bug.cgi?id=2027569#c0)

** No longer affects: mutter

** Bug watch added: gitlab.gnome.org/GNOME/mutter/-/issues #3511
   https://gitlab.gnome.org/GNOME/mutter/-/issues/3511

** Also affects: mutter via
   https://gitlab.gnome.org/GNOME/mutter/-/issues/3511
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/2097415/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to