8564a0d109
Up to now we could set the transform only on output initialization. However, on certain situations(like tablets and convertible laptops), screen orientation can change while the compositor is running and thus the need for change of the output transform arises. When the transform changes, we must update the output geometry, output->region and output->previous_damage, as well as send this change to clients. We also have to check whether any of the pointers are inside the output which is being rotated. If this is the case, they are moved to the new center, because otherwise the pointer is stuck outside of the screen ans "lost" to the user. What is more, after calling this function compositors should check if any view is now outside of the screen and move it according to their wish. Signed-off-by: Ilia Bozhinov <iliyabo@hotmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Acked-by: Daniel Stone <daniels@collabora.com>