the window composer is disabled every time the screen turns off, is this a bug? is there a way to solve this?
There is no composer in KDE Plasma.
The compositor on the other hand, has to be enabled at startup. Try to set it like this:
here this option is checked, but every time the screen is turned off the composer is disabled