From bb44405c35f8f819032b1da339a6ae688ba91c74 Mon Sep 17 00:00:00 2001 From: alpheratz0 Date: Fri, 29 Apr 2022 18:45:54 -0300 Subject: refactor: move `is_full_screen` outside if statement `is_full_screen` was being set to the same value in both branches --- autotiling/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autotiling/main.py b/autotiling/main.py index 1780884..51ef1d0 100644 --- a/autotiling/main.py +++ b/autotiling/main.py @@ -55,12 +55,11 @@ def switch_splitting(i3, e, debug, workspaces): # We're on i3: on sway it would be None # May be 'auto_on' or 'user_on' is_floating = "_on" in con.floating - is_full_screen = con.fullscreen_mode == 1 else: # We are on sway is_floating = con.type == "floating_con" - is_full_screen = con.fullscreen_mode == 1 + is_full_screen = con.fullscreen_mode == 1 is_stacked = con.parent.layout == "stacked" is_tabbed = con.parent.layout == "tabbed" -- cgit