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; }