aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralpheratz0 <alpheratz99@protonmail.com>2022-04-29 18:45:54 -0300
committeralpheratz0 <alpheratz99@protonmail.com>2022-04-29 18:45:54 -0300
commitbb44405c35f8f819032b1da339a6ae688ba91c74 (patch)
tree7c19def9a45890695f8defd1ea6906a8179f2587
parentdbdbfa10115c23c987d63f66f0661b7039885735 (diff)
downloadautotiling-bb44405c35f8f819032b1da339a6ae688ba91c74.tar.gz
refactor: move `is_full_screen` outside if statement
`is_full_screen` was being set to the same value in both branches
-rw-r--r--autotiling/main.py3
1 files changed, 1 insertions, 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"