wayland: Fix implementation of gdk_atom_name

This commit is contained in:
Rob Bradford 2012-01-12 13:33:58 +00:00
parent 7f404a1fee
commit f791687d3b

View File

@ -135,8 +135,8 @@ gdk_wayland_display_manager_get_atom_name (GdkDisplayManager *manager_in,
while (g_hash_table_iter_next (&iter, &key, &value)) while (g_hash_table_iter_next (&iter, &key, &value))
{ {
if (GDK_POINTER_TO_ATOM (key) == atom) if (GDK_POINTER_TO_ATOM (value) == atom)
return g_strdup (value); return g_strdup (key);
} }
return NULL; return NULL;