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.