tiling drag: ignore scratchpad windows when locating drop targets (#5211)
fixes https://github.com/i3/i3/issues/5170
This commit is contained in:
parent
55d400b17d
commit
941229ee62
1
release-notes/bugfixes/4-drop-scratchpad
Normal file
1
release-notes/bugfixes/4-drop-scratchpad
Normal file
@ -0,0 +1 @@
|
||||
tiling drag: ignore scratchpad windows when locating drop targets
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user