i3-companion: fix case where candidate workspace is scratchpad

This commit is contained in:
Vincent Bernat 2021-08-09 16:22:09 +02:00
parent e91e96c77b
commit 30df63aea1

View file

@ -460,6 +460,7 @@ async def workspace_exclusive(i3, event):
if w.id != ow.id and (w.window_class or object()) == ow.window_class
}
candidate_workspaces -= exclusive_workspaces
candidate_workspaces -= {-1} # scratchpad
if candidate_workspaces:
# Use one of the candidates