client: Add DnD cursors to the managed cursors list
That way we'll be able to set the corresponding pointer surface to
a current DnD operation.
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
diff --git a/clients/window.c b/clients/window.c
index 5cd33dd..35261b6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1265,6 +1265,19 @@
"0426c94ea35c87780ff01dc239897213"
};
+static const char *move_draggings[] = {
+ "dnd-move"
+};
+
+static const char *copy_draggings[] = {
+ "dnd-copy"
+};
+
+static const char *forbidden_draggings[] = {
+ "dnd-none",
+ "dnd-no-drop"
+};
+
struct cursor_alternatives {
const char **names;
size_t count;
@@ -1284,6 +1297,9 @@
{xterms, ARRAY_LENGTH(xterms)},
{hand1s, ARRAY_LENGTH(hand1s)},
{watches, ARRAY_LENGTH(watches)},
+ {move_draggings, ARRAY_LENGTH(move_draggings)},
+ {copy_draggings, ARRAY_LENGTH(copy_draggings)},
+ {forbidden_draggings, ARRAY_LENGTH(forbidden_draggings)},
};
static void