mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-01 08:44:25 +02:00
i3-companion: don't consider a win exclusive if it has the same window class
This commit is contained in:
parent
352c40f264
commit
4e21366d7a
1 changed files with 3 additions and 2 deletions
|
@ -376,12 +376,13 @@ async def worksplace_exclusive(i3, event):
|
|||
if not workspace:
|
||||
return
|
||||
|
||||
# Does the target workspace contains an exclusive app?
|
||||
# Does the target workspace contains an exclusive app (not using
|
||||
# the same class).
|
||||
ids = {
|
||||
s is not None and s.lower() or None
|
||||
for ow in workspace.leaves()
|
||||
for s in {ow.name, ow.window_class, ow.window_instance}
|
||||
if w.id != ow.id
|
||||
if w.id != ow.id and w.window_class != ow.window_class
|
||||
}
|
||||
exclusives = ids.intersection(exclusive_apps)
|
||||
if not exclusives:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue