From b32462031b754507ff7663ae051b840d583615e1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 18 Jul 2021 00:37:10 +0200 Subject: [PATCH] i3-companion: simplify check for intruding windows Sticky window is usually floating, as well as the non-normal windows. So, no need for all these checks. --- bin/i3-companion | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index dcb5621..7813715 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -340,12 +340,7 @@ async def workspace_exclusive(i3, event): w = event.container # Can the current window intrude the workspace? - if ( - w.floating in {"auto_on", "user_on"} - or w.ipc_data["window_type"] not in {"normal", "splash", "unknown"} - or w.sticky - or w.window_class in intrusive_apps - ): + if w.floating in {"auto_on", "user_on"} or w.window_class in intrusive_apps: logger.debug("window %s can intrude", w.window_class) return