Skip to content

Commit

Permalink
xdnd
Browse files Browse the repository at this point in the history
  • Loading branch information
onflapp committed Sep 23, 2024
1 parent 5d88398 commit f3d4a76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Headers/x11/xdnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef _X_DND_H
#define _X_DND_H

#define XDND_VERSION 2
#define XDND_VERSION 3

/* XdndEnter */
#define XDND_THREE 3
Expand Down
5 changes: 5 additions & 0 deletions Source/x11/xdnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ xdnd_is_dnd_aware(DndClass *dnd, Window window, int *version, Atom *typelist)
}

types = (Atom *) data;
if (types[0] < 3) {
if (data)
XFree(data);
return 0;
}
*version = dnd->version < types[0] ? dnd->version : types[0]; // minimum
dnd_debug ("Using XDND version %d", *version);
if (count > 1)
Expand Down

0 comments on commit f3d4a76

Please sign in to comment.