mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 03:34:22 +02:00
i3-companion: handle windows without a workspace
This commit is contained in:
parent
fbc9821d36
commit
bee46da365
1 changed files with 5 additions and 2 deletions
|
@ -375,7 +375,10 @@ async def workspace_exclusive(i3, event):
|
||||||
if current_window is None:
|
if current_window is None:
|
||||||
logger.debug("cannot find new window in tree?")
|
logger.debug("cannot find new window in tree?")
|
||||||
return
|
return
|
||||||
current_workspace = current_window.workspace().num
|
current_workspace = current_window.workspace()
|
||||||
|
if current_workspace is None:
|
||||||
|
logger.debug("cannot find new window workspace?")
|
||||||
|
return
|
||||||
|
|
||||||
# Get the list of workspaces with an exclusive app, excluding the
|
# Get the list of workspaces with an exclusive app, excluding the
|
||||||
# current window and windows of the same class.
|
# current window and windows of the same class.
|
||||||
|
@ -388,7 +391,7 @@ async def workspace_exclusive(i3, event):
|
||||||
}
|
}
|
||||||
|
|
||||||
# If current one is OK, don't move
|
# If current one is OK, don't move
|
||||||
if current_workspace not in exclusive_workspaces:
|
if current_workspace.num not in exclusive_workspaces:
|
||||||
logger.debug("no exclusive app, %s can go there", w.window_class)
|
logger.debug("no exclusive app, %s can go there", w.window_class)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue