mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-21 11:24:28 +02:00
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.
This commit is contained in:
parent
f95d1e2b92
commit
b32462031b
1 changed files with 1 additions and 6 deletions
|
@ -340,12 +340,7 @@ async def workspace_exclusive(i3, event):
|
||||||
w = event.container
|
w = event.container
|
||||||
|
|
||||||
# Can the current window intrude the workspace?
|
# Can the current window intrude the workspace?
|
||||||
if (
|
if w.floating in {"auto_on", "user_on"} or w.window_class in intrusive_apps:
|
||||||
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
|
|
||||||
):
|
|
||||||
logger.debug("window %s can intrude", w.window_class)
|
logger.debug("window %s can intrude", w.window_class)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue