diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2022-10-18 22:10:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 22:10:03 +0200 |
commit | 5e759ed42458cad850dbff3b8b3d3a60f675571c (patch) | |
tree | 5b534e49a10225cd32b060cb94098022eeccfa82 /include | |
parent | 941229ee6231fb881ed32d7d1236f3ed1604f298 (diff) | |
download | i3-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.h | 9 |
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. * */ |