Draft: Dont update if hidden
This is the counterpart of xfce/xfce4-panel!159. Please read the description over there.
Changes proposed
- Adds a toggle in the GUI that says "Don't render if hidden" (off by default)
- Subscribes to the proposed new
hidden
signal of xfce-panel - Skips calling
DisplayCmdOutput ()
whenhidden=true
and the setting is on - Do call
DisplayCmdOutput ()
on receiving thehidden=false
signal and on timer periods while not hidden
As said on the other PR, I'm not a C developer and I probably missed some things. Please advise.
Manually tested on Arch Linux x86_64 X11.