From 4e21366d7a4df288b84efc24d4969ad491d33946 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 16 Jul 2021 16:41:07 +0200 Subject: [PATCH] i3-companion: don't consider a win exclusive if it has the same window class --- bin/i3-companion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index 1c7075e..14212a5 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -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: