summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-04-12 17:30:41 -0500
committerTim Keller <tjkeller.xyz>2025-04-12 17:30:41 -0500
commit2e6a9d7730cf7b53d2c703235a868ac98e09d1a9 (patch)
tree0be6912274094d16ae13c8d4496c8e481b16ae6b
parent76b1b9ee072b99ad0a000ec2719326d4b480ec38 (diff)
downloadawesome-2e6a9d7730cf7b53d2c703235a868ac98e09d1a9.tar.xz
awesome-2e6a9d7730cf7b53d2c703235a868ac98e09d1a9.zip
fix bug when no tag is selected
-rw-r--r--func/noborders.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/func/noborders.lua b/func/noborders.lua
index fe67024..b296ad2 100644
--- a/func/noborders.lua
+++ b/func/noborders.lua
@@ -2,6 +2,10 @@ 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
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