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
1a200508
Commit
1a200508
authored
Mar 02, 2015
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Mar 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Support XDnD version 5.
parent
4c8b3f63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
xdnd.c
dlls/winex11.drv/xdnd.c
+10
-1
No files found.
dlls/winex11.drv/x11drv.h
View file @
1a200508
...
...
@@ -61,7 +61,7 @@ typedef int Status;
#define MAX_DASHLEN 16
#define WINE_XDND_VERSION
4
#define WINE_XDND_VERSION
5
/* X physical pen */
typedef
struct
...
...
dlls/winex11.drv/xdnd.c
View file @
1a200508
...
...
@@ -373,6 +373,8 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
{
XClientMessageEvent
e
;
IDropTarget
*
dropTarget
;
DWORD
effect
=
XDNDDropEffect
;
int
accept
=
0
;
/* Assume we're not accepting */
TRACE
(
"
\n
"
);
...
...
@@ -386,7 +388,6 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
{
HRESULT
hr
;
POINTL
pointl
;
DWORD
effect
=
XDNDDropEffect
;
pointl
.
x
=
XDNDxy
.
x
;
pointl
.
y
=
XDNDxy
.
y
;
...
...
@@ -395,7 +396,10 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
if
(
SUCCEEDED
(
hr
))
{
if
(
effect
!=
DROPEFFECT_NONE
)
{
TRACE
(
"drop succeeded
\n
"
);
accept
=
1
;
}
else
TRACE
(
"the application refused the drop
\n
"
);
}
...
...
@@ -414,6 +418,11 @@ void X11DRV_XDND_DropEvent( HWND hWnd, XClientMessageEvent *event )
e
.
message_type
=
x11drv_atom
(
XdndFinished
);
e
.
format
=
32
;
e
.
data
.
l
[
0
]
=
event
->
window
;
e
.
data
.
l
[
1
]
=
accept
;
if
(
accept
)
e
.
data
.
l
[
2
]
=
X11DRV_XDND_DROPEFFECTToXdndAction
(
effect
);
else
e
.
data
.
l
[
2
]
=
None
;
XSendEvent
(
event
->
display
,
event
->
data
.
l
[
0
],
False
,
NoEventMask
,
(
XEvent
*
)
&
e
);
}
...
...
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