tiling drag: ignore scratchpad windows when locating drop targets (#5211)

fixes https://github.com/i3/i3/issues/5170
This commit is contained in:
Michael Stapelberg 2022-10-16 22:12:45 +02:00 committed by GitHub
parent 55d400b17d
commit 941229ee62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
tiling drag: ignore scratchpad windows when locating drop targets

View File

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