From 9196497e6c22d4065e9172f07439164125b11675 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 7 Jul 2021 23:11:22 +0200 Subject: [PATCH] i3-companion: don't move exclusive apps to new workspace when alone --- bin/i3-companion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index 5670dde..0e59ac5 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -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")