https://bugs.winehq.org/show_bug.cgi?id=40194
Bug ID: 40194 Summary: drag and drop doesn't work because of typo in xdnd.c Product: Wine Version: 1.9.4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: yokoyama@graco.c.u-tokyo.ac.jp Distribution: ---
Created attachment 53700 --> https://bugs.winehq.org/attachment.cgi?id=53700 patch for dlls/winex11.drv/xdnd.c
Drag and Drop(D&D), from nemo (Cinnamon's file manager) to Hidemaru.exe (Windows text editor), does not work.
Step to reproduce: (1) drag a textfile icon in nemo. (2) drop off on a Hidemaru window.
Expected Result: Hidemaru opens the textfile. Actual Result: Nothing happens.
debug log
150512.532:0008:0009:warn:xdnd:X11DRV_XDND_PositionEvent IDropTarget_DragOver failed, error 0x00000000 150512.532:0008:0009:trace:xdnd:X11DRV_XDND_PositionEvent action req: 528 accept(1) at x(754),y(358) 150512.539:0008:0009:trace:xdnd:X11DRV_XDND_DropEvent 150512.541:0008:0009:trace:xdnd:create_stream_from_map size 4096 150512.810:0008:0009:trace:xdnd:X11DRV_XDND_FreeDragDropOp
hr == 0x00000000 (S_OK) should be successful return, but the return value logged as error.
I found a miscoding in xdnd.c (c965894), http://source.winehq.org/git/wine.git/commitdiff/c96589421a5fdf216daed54f207...
and fixed it, D&D worked correctly.
https://bugs.winehq.org/show_bug.cgi?id=40194
--- Comment #1 from Austin English austinenglish@gmail.com --- See https://wiki.winehq.org/SubmittingPatches for how to submit patches, they are not picked up from bugzilla.
https://bugs.winehq.org/show_bug.cgi?id=40194
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=40194
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |piotr@codeweavers.com, | |sebastian@fds-team.de Regression SHA1| |c96589421a5fdf216daed54f207 | |52e63cb31e1a5
--- Comment #2 from Sebastian Lackner sebastian@fds-team.de --- I would say this qualifies as a regression because the commit exactly inverted the logic. There was also confusion on the wine-devel mailing list, but I couldn't find a reply / explanation if this change was intentional or really a typo.
https://www.winehq.org/pipermail/wine-devel/2016-January/111044.html
https://bugs.winehq.org/show_bug.cgi?id=40194
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #3 from Piotr Caban piotr.caban@gmail.com --- (In reply to Sebastian Lackner from comment #2)
There was also confusion on the wine-devel mailing list, but I couldn't find a reply / explanation if this change was intentional or really a typo.
It's a typo. I've missed the email on wine-devel (that's why there was no reply).
https://bugs.winehq.org/show_bug.cgi?id=40194
--- Comment #4 from Piotr Caban piotr.caban@gmail.com --- (In reply to yokoyama from comment #0)
Created attachment 53700 [details] patch for dlls/winex11.drv/xdnd.c
Could you please send the patch to wine-patches mailing list?
https://bugs.winehq.org/show_bug.cgi?id=40194
--- Comment #5 from yokoyama@graco.c.u-tokyo.ac.jp --- (In reply to Piotr Caban from comment #4)
Could you please send the patch to wine-patches mailing list?
I've submitted. Thanks. https://source.winehq.org/patches/data/119527
https://bugs.winehq.org/show_bug.cgi?id=40194
Shu Yokoyama yokoyama@graco.c.u-tokyo.ac.jp changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Shu Yokoyama yokoyama@graco.c.u-tokyo.ac.jp --- resolved: commit 5ccf039
https://bugs.winehq.org/show_bug.cgi?id=40194
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5ccf039fc72e86674794b444125 | |3bce04ceff616 CC| |mstefani@redhat.com
https://bugs.winehq.org/show_bug.cgi?id=40194
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.5.