aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Miller <nwg.piotr@gmail.com>2022-05-13 04:07:44 +0200
committerGitHub <noreply@github.com>2022-05-13 04:07:44 +0200
commit8ff3b0b146d3a304a6df7d5d8e3550662b7d711c (patch)
tree7c19def9a45890695f8defd1ea6906a8179f2587
parentdbdbfa10115c23c987d63f66f0661b7039885735 (diff)
parentbb44405c35f8f819032b1da339a6ae688ba91c74 (diff)
downloadautotiling-8ff3b0b146d3a304a6df7d5d8e3550662b7d711c.tar.gz
Merge pull request #37 from alpheratz0/patch-1
refactor: move `is_full_screen` outside if statement
-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"