Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aaac4e25
Commit
aaac4e25
authored
Aug 15, 2019
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Indicate whether the drop point is non-client area.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
424e1e71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xdnd.c
dlls/winex11.drv/xdnd.c
+4
-1
No files found.
dlls/winex11.drv/xdnd.c
View file @
aaac4e25
...
...
@@ -636,12 +636,15 @@ static HRESULT X11DRV_XDND_SendDropFiles(HWND hwnd)
HGLOBAL
dropHandle
=
GlobalAlloc
(
GMEM_FIXED
,
GlobalSize
(
current
->
contents
));
if
(
dropHandle
)
{
RECT
rect
;
DROPFILES
*
lpDrop
=
GlobalLock
(
dropHandle
);
memcpy
(
lpDrop
,
GlobalLock
(
current
->
contents
),
GlobalSize
(
current
->
contents
));
GlobalUnlock
(
current
->
contents
);
lpDrop
->
pt
.
x
=
XDNDxy
.
x
;
lpDrop
->
pt
.
y
=
XDNDxy
.
y
;
lpDrop
->
fNC
=
!
ScreenToClient
(
hwnd
,
&
lpDrop
->
pt
);
lpDrop
->
fNC
=
!
(
ScreenToClient
(
hwnd
,
&
lpDrop
->
pt
)
&&
GetClientRect
(
hwnd
,
&
rect
)
&&
PtInRect
(
&
rect
,
lpDrop
->
pt
));
TRACE
(
"Sending WM_DROPFILES: hWnd=0x%p, fNC=%d, x=%d, y=%d, files=%p(%s)
\n
"
,
hwnd
,
lpDrop
->
fNC
,
lpDrop
->
pt
.
x
,
lpDrop
->
pt
.
y
,
((
char
*
)
lpDrop
)
+
lpDrop
->
pFiles
,
debugstr_w
((
WCHAR
*
)(((
char
*
)
lpDrop
)
+
lpDrop
->
pFiles
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment