diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2022-10-16 22:12:45 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2022-10-24 21:13:00 +0200 |
commit | c55b52a7cc8c75468dbc9bf615afbd3030645540 (patch) | |
tree | b03668a0fb27a11f2152d18c26f88d44fd35be64 | |
parent | 131b0c5b3de8abdb5894726753c85540bde61237 (diff) | |
download | i3-c55b52a7cc8c75468dbc9bf615afbd3030645540.tar.gz i3-c55b52a7cc8c75468dbc9bf615afbd3030645540.zip |
tiling drag: ignore scratchpad windows when locating drop targets (#5211)
fixes https://github.com/i3/i3/issues/5170
-rw-r--r-- | release-notes/bugfixes/4-drop-scratchpad | 1 | ||||
-rw-r--r-- | src/tiling_drag.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/release-notes/bugfixes/4-drop-scratchpad b/release-notes/bugfixes/4-drop-scratchpad new file mode 100644 index 00000000..559abd18 --- /dev/null +++ b/release-notes/bugfixes/4-drop-scratchpad @@ -0,0 +1 @@ +tiling drag: ignore scratchpad windows when locating drop targets diff --git a/src/tiling_drag.c b/src/tiling_drag.c index 2caa7f03..94908872 100644 --- a/src/tiling_drag.c +++ b/src/tiling_drag.c @@ -41,6 +41,11 @@ static Con *find_drop_target(uint32_t x, uint32_t y) { !con_is_floating(con) && !con_is_hidden(con)) { Con *ws = con_get_workspace(con); + if (strcmp(ws->name, "__i3_scratch") == 0) { + /* Skip containers on the scratchpad, which are technically + visible on their pseudo-output. */ + continue; + } if (!workspace_is_visible(ws)) { continue; } |