Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
10789142
Commit
10789142
authored
Feb 20, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Check XDND version.
parent
f7b18148
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
window.c
dlls/winex11.drv/window.c
+1
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-0
xdnd.c
dlls/winex11.drv/xdnd.c
+10
-2
No files found.
dlls/winex11.drv/window.c
View file @
10789142
...
...
@@ -917,7 +917,7 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data
{
long
i
;
Atom
protocols
[
3
];
Atom
dndVersion
=
4
;
Atom
dndVersion
=
WINE_XDND_VERSION
;
XClassHint
*
class_hints
;
char
*
process_name
=
get_process_name
();
...
...
dlls/winex11.drv/x11drv.h
View file @
10789142
...
...
@@ -64,6 +64,8 @@ typedef int Status;
#define MAX_PIXELFORMATS 8
#define MAX_DASHLEN 16
#define WINE_XDND_VERSION 4
struct
tagCURSORICONINFO
;
extern
void
CDECL
wine_tsx11_lock
(
void
);
...
...
dlls/winex11.drv/xdnd.c
View file @
10789142
...
...
@@ -87,14 +87,22 @@ static CRITICAL_SECTION xdnd_cs = { &critsect_debug, -1, 0, 0, 0, 0 };
*/
void
X11DRV_XDND_EnterEvent
(
HWND
hWnd
,
XClientMessageEvent
*
event
)
{
int
version
;
Atom
*
xdndtypes
;
unsigned
long
count
=
0
;
TRACE
(
"ver(%ld) check-XdndTypeList(%ld) data=%ld,%ld,%ld,%ld,%ld
\n
"
,
(
event
->
data
.
l
[
1
]
&
0xFF000000
)
>>
24
,
(
event
->
data
.
l
[
1
]
&
1
),
version
=
(
event
->
data
.
l
[
1
]
&
0xFF000000
)
>>
24
;
TRACE
(
"ver(%d) check-XdndTypeList(%ld) data=%ld,%ld,%ld,%ld,%ld
\n
"
,
version
,
(
event
->
data
.
l
[
1
]
&
1
),
event
->
data
.
l
[
0
],
event
->
data
.
l
[
1
],
event
->
data
.
l
[
2
],
event
->
data
.
l
[
3
],
event
->
data
.
l
[
4
]);
if
(
version
>
WINE_XDND_VERSION
)
{
TRACE
(
"Ignores unsupported version
\n
"
);
return
;
}
/* If the source supports more than 3 data types we retrieve
* the entire list. */
if
(
event
->
data
.
l
[
1
]
&
1
)
...
...
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