mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-28 14:55:01 +02:00
i3-companion: don't move exclusive apps to new workspace when alone
This commit is contained in:
parent
f7646037fa
commit
9196497e6c
1 changed files with 3 additions and 2 deletions
|
@ -164,8 +164,9 @@ async def worksplace_exclusive(i3, event):
|
|||
if not workspace:
|
||||
return
|
||||
ids = {s is not None and s.lower() or None
|
||||
for w in workspace.leaves()
|
||||
for s in {w.name, w.window_class, w.window_instance}}
|
||||
for ow in workspace.leaves()
|
||||
for s in {ow.name, ow.window_class, ow.window_instance}
|
||||
if w.id != ow.id}
|
||||
exclusives = ids.intersection(exclusive_apps)
|
||||
if not exclusives:
|
||||
logger.debug("no exclusive app, {w.name} can go there")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue