Northern lights should stop animating on idle/focus out

This commit is contained in:
Kovid Goyal 2026-08-11 08:50:05 +05:30
parent a782e3736b
commit 0820a38252
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1,18 +1,22 @@
textures a persist
startgroup
animation_start os-window-focus-in | user-activity
animation_stop os-window-focus-out | user-idle
var int STAGE = 0
shaders northern-lights
output_texture a
endgroup
startgroup
attach
var int STAGE = 1
shaders northern-lights
output_texture persist
endgroup
startgroup
attach
var int STAGE = 2
shaders northern-lights
endgroup