Lightning effect is turning off while leaving program window

Hi, if i stay in the program window everything works fine but if i click somewhere else effect stop working