From 5000d9237bf033cfb0b77d4a6e1c6b7c11c2b784 Mon Sep 17 00:00:00 2001 From: SystematicError <63366086+SystematicError@users.noreply.github.com> Date: Wed, 19 Jan 2022 07:13:50 +0000 Subject: [PATCH] Prevent flashing client when only one is present (#156) * Prevent flashing client when only one is present * Account for hidden clients and clients across multiple tags Co-authored-by: SystematicError --- module/flash_focus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/flash_focus.lua b/module/flash_focus.lua index 2fe3f47..246f4a3 100644 --- a/module/flash_focus.lua +++ b/module/flash_focus.lua @@ -5,7 +5,7 @@ local op = beautiful.flash_focus_start_opacity or 0.6 local stp = beautiful.flash_focus_step or 0.01 local flashfocus = function(c) - if c then + if c and #c.screen.clients > 1 then c.opacity = op local q = op local g = gears.timer({