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:
parent
796845e1a1
commit
5000d9237b
|
@ -5,7 +5,7 @@ local op = beautiful.flash_focus_start_opacity or 0.6
|
||||||
local stp = beautiful.flash_focus_step or 0.01
|
local stp = beautiful.flash_focus_step or 0.01
|
||||||
|
|
||||||
local flashfocus = function(c)
|
local flashfocus = function(c)
|
||||||
if c then
|
if c and #c.screen.clients > 1 then
|
||||||
c.opacity = op
|
c.opacity = op
|
||||||
local q = op
|
local q = op
|
||||||
local g = gears.timer({
|
local g = gears.timer({
|
||||||
|
|
Loading…
Reference in New Issue