summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-04-12 17:31:45 -0500
committerTim Keller <tjkeller.xyz>2025-04-12 17:31:45 -0500
commit507b819c9c9f6e77e8137f7a663e08da5e38908e (patch)
tree70676b1c92255d488f16126a06132102799f7d78
parent2e6a9d7730cf7b53d2c703235a868ac98e09d1a9 (diff)
downloadawesome-507b819c9c9f6e77e8137f7a663e08da5e38908e.tar.xz
awesome-507b819c9c9f6e77e8137f7a663e08da5e38908e.zip
make nicer
-rw-r--r--func/noborders.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/func/noborders.lua b/func/noborders.lua
index b296ad2..89086b5 100644
--- a/func/noborders.lua
+++ b/func/noborders.lua
@@ -2,10 +2,7 @@ local beautiful = require("beautiful")
-- TODO this function will call arrange multiple times. once per each change of c.border_width
local function update_borders(s)
- local selected_tag = s.selected_tag
- if selected_tag == nil then
- return
- end
+ if s.selected_tag == nil then return end
local max = s.selected_tag.layout.name == "max"
local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count