aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason <ammgws@users.noreply.github.com>2020-05-29 00:43:03 +0900
committerGitHub <noreply@github.com>2020-05-29 00:43:03 +0900
commit80b21ab2da13f060efc353719d355a2a58585bee (patch)
treecb55752ca27e9345f94441df2b3d76415a63a0fc
parent5370c92d4b86e327210337abe2fdbdc95957b92d (diff)
downloadautotiling-80b21ab2da13f060efc353719d355a2a58585bee.tar.gz
Update logic for sway 1.4>
See https://github.com/swaywm/sway/issues/5201
-rwxr-xr-xautotiling.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/autotiling.py b/autotiling.py
index 4913e9c..cc42a43 100755
--- a/autotiling.py
+++ b/autotiling.py
@@ -31,8 +31,7 @@ def switch_splitting(i3, e, debug):
is_full_screen = con.fullscreen_mode == 1
else: # We are on sway
is_floating = con.type == 'floating_con'
- # On sway on 1st focus the parent container returns 1, then forever the focused container itself
- is_full_screen = con.fullscreen_mode == 1 or con.parent.fullscreen_mode == 1
+ is_full_screen = con.fullscreen_mode == 1
is_stacked = con.parent.layout == 'stacked'
is_tabbed = con.parent.layout == 'tabbed'