[PATCH 0/1] MR10890: winex11.drv: Use hwnd_drop instead of hwnd in x11drv_dnd_drop_event.
Followup of c3d4665930. Previously `PostMessageW` received the window handle in `hwnd_prop` through the call to `X11DRV_XDND_SendDropFiles`, but after c3d4665930 `PostMessageW` is called with `hwnd`. CC: @rbernon Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59425 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10890
From: Bernhard Übelacker <bernhardu@mailbox.org> Followup of c3d4665930. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59425 --- dlls/user32/clipboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/user32/clipboard.c b/dlls/user32/clipboard.c index f2b6ac92402..3c3ba7c584c 100644 --- a/dlls/user32/clipboard.c +++ b/dlls/user32/clipboard.c @@ -1295,12 +1295,12 @@ DWORD drag_drop_drop( HWND hwnd ) RECT rect; drop->pt = object->target_pos; - drop->fNC = !ScreenToClient( hwnd, &drop->pt ) || !GetClientRect( hwnd, &rect ) || !PtInRect( &rect, drop->pt ); - TRACE( "Sending WM_DROPFILES: hwnd %p, pt %s, fNC %u, files %p (%s)\n", hwnd, + drop->fNC = !ScreenToClient( hwnd_drop, &drop->pt ) || !GetClientRect( hwnd_drop, &rect ) || !PtInRect( &rect, drop->pt ); + TRACE( "Sending WM_DROPFILES: hwnd_drop %p, pt %s, fNC %u, files %p (%s)\n", hwnd_drop, wine_dbgstr_point( &drop->pt), drop->fNC, files, debugstr_w(files) ); GlobalUnlock( medium.hGlobal ); - PostMessageW( hwnd, WM_DROPFILES, (WPARAM)medium.hGlobal, 0 ); + PostMessageW( hwnd_drop, WM_DROPFILES, (WPARAM)medium.hGlobal, 0 ); accept = 1; effect = DROPEFFECT_COPY; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10890
participants (2)
-
Bernhard Übelacker -
Bernhard Übelacker (@bernhardu)