Following the discussion in T9722, I have implemented the basic functionality to jump inte the transform tool from pasting a layer. After insert a paint layer, it deselects if there is a selection and jumps into the tranform tool starting a new Transform.
The code is not finished, but rather a starting point for the discussion about the behavior. I had some trouble to activate the tranform tool with an active stroke, so had to make a slight hack with the delayed activation. Any idea if there is a way to solve that better?
No idea if this is the best way to approach this. It has been a while since I did hack on Krita ;)