Bug 101316

Summary: Drag and drop does not work
Product: XQuartz Reporter: Lucas <lucasribeiroufrj>
Component: New BugsAssignee: Jeremy Huddleston Sequoia <jeremyhu>
Status: RESOLVED NOTOURBUG QA Contact: Jeremy Huddleston Sequoia <jeremyhu>
Severity: normal    
Priority: medium    
Version: 2.7.11 (xserver-1.18.4)   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Lucas 2017-06-06 15:34:41 UTC
The program "paste" [1] running with the argument -dnd does not work. Nothing happens.

[1] - https://github.com/edrosten/x_clipboard

Obs. 1: I am using el capitan.
Obs. 2: The same program works on linux.
Comment 1 Jeremy Huddleston Sequoia 2017-06-08 20:58:59 UTC
Then I suggest you file a bug report against that product.
Comment 2 Lucas 2017-06-09 06:41:33 UTC
(In reply to Jeremy Huddleston Sequoia from comment #1)
> Then I suggest you file a bug report against that product.

Thank you for your attention.

Sorry, I have made a mistake. My question was very incomplete. What I wanted to say is that the Xquartz's Drang and drop support is not working no matter program is being used. I wrote myself a program from the ground up and the drag and drop does not working on Mac (using Xquartz), but it works nice on Linux. I have debugged my source and noticed that, when running on Mac, the if below returns true,

Atom XdndEnter =  XInternAtom (display, "XdndEnter", False);
Atom XdndDrop  =  XInternAtom (display, "XdndDrop", False);
if(XInternAtom(display, "XdndAware", False))
  std::cout << "Drag Supported" << std::endl;

but not event about drag and drop is ever created since I am not getting any of them using the following snippet code: 

XEvent xEvent;
XNextEvent(display, &xEvent);

Thanks,
O hope someone can help me with this very annoying bug of Xquartz.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.