aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2022-10-18 22:10:03 +0200
committerGitHub <noreply@github.com>2022-10-18 22:10:03 +0200
commit5e759ed42458cad850dbff3b8b3d3a60f675571c (patch)
tree5b534e49a10225cd32b060cb94098022eeccfa82 /include
parent941229ee6231fb881ed32d7d1236f3ed1604f298 (diff)
downloadi3-5e759ed42458cad850dbff3b8b3d3a60f675571c.tar.gz
i3-5e759ed42458cad850dbff3b8b3d3a60f675571c.zip
tiling drag: only start when there are drop targets (#5213)
This prevents potentially confusing drag & drop on fullscreen containers and only-containers on workspaces. fixes https://github.com/i3/i3/issues/5184
Diffstat (limited to 'include')
-rw-r--r--include/tiling_drag.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tiling_drag.h b/include/tiling_drag.h
index d78744c9..3091b734 100644
--- a/include/tiling_drag.h
+++ b/include/tiling_drag.h
@@ -9,6 +9,8 @@
*/
#pragma once
+#include "all.h"
+
/**
* Tiling drag initiation modes.
*/
@@ -20,6 +22,13 @@ typedef enum {
} tiling_drag_t;
/**
+ * Returns whether there currently are any drop targets.
+ * Used to only initiate a drag when there is something to drop onto.
+ *
+ */
+bool has_drop_targets(void);
+
+/**
* Initiates a mouse drag operation on a tiled window.
*
*/