For some reason Xfce panel stops autohiding when i used the certain things on it. I cant figure out why exactly but there is a way to at least reset the xfce panel so it stops doing it.
At least for a while. It must be a cache issue to honest.
Anyway here is the terminal code: