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 <systematicerror@users.noreply.github.com>
This commit is contained in:
SystematicError 2022-01-19 07:13:50 +00:00 committed by GitHub
parent 796845e1a1
commit 5000d9237b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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({