This patch implements next peaces of logic:
- If opacity is not completely opaque by default, changing it to opaque
won't result it resetting the flag anymore.
- Also in such a case the X11 property will be set for completely opaque
windows as well. That way we can restore it in case of WM restart.
- On WM initialization we check if the X11 opacity property has value we
would expectto be left behind by previous WM instance and if it does
we won't set the custom_opacity flag.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
XDeleteProperty(tqt_xdisplay(),window(),atoms->net_wm_window_opacity);// ??? frameId() is necessary for visible changes, window() is the winId() that would be set by apps - we set both to be sure the app knows what's currently displayd