It's used only by window elevation logic, but it can be moved inside libkwineffects. It should also fix missing repainting in scripted effects.