diff options
author | Piotr Miller <nwg.piotr@gmail.com> | 2020-05-29 13:51:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 13:51:14 +0200 |
commit | 8d2f43d3d022f39dfc286147238a6f226a960b3f (patch) | |
tree | cb55752ca27e9345f94441df2b3d76415a63a0fc | |
parent | 5370c92d4b86e327210337abe2fdbdc95957b92d (diff) | |
parent | 80b21ab2da13f060efc353719d355a2a58585bee (diff) | |
download | autotiling-8d2f43d3d022f39dfc286147238a6f226a960b3f.tar.gz |
Merge pull request #11 from ammgws/patch-1
Update logic for sway>1.4 (currently compatible with the development sway version only)
-rwxr-xr-x | autotiling.py | 3 |
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' |