Commit 96912b56 authored by Matthias Clasen's avatar Matthias Clasen

Avoid another case of treating None as an atom

parent 478cc88f
...@@ -1919,9 +1919,14 @@ static GdkDragAction ...@@ -1919,9 +1919,14 @@ static GdkDragAction
xdnd_action_from_atom (GdkDisplay *display, xdnd_action_from_atom (GdkDisplay *display,
Atom xatom) Atom xatom)
{ {
GdkAtom atom = gdk_x11_xatom_to_atom_for_display (display, xatom); GdkAtom atom;
gint i; gint i;
if (xatom == None)
return 0;
atom = gdk_x11_xatom_to_atom_for_display (display, xatom);
if (!xdnd_actions_initialized) if (!xdnd_actions_initialized)
xdnd_initialize_actions(); xdnd_initialize_actions();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment