From 80b21ab2da13f060efc353719d355a2a58585bee Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 29 May 2020 00:43:03 +0900 Subject: Update logic for sway 1.4> See https://github.com/swaywm/sway/issues/5201 --- autotiling.py | 3 +-- 1 file changed, 1 insertion(+), 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' -- cgit