shell: correct position of a surface before rotating it.
authorRafal Mielniczuk <rafal.mielniczuk2@gmail.com>
Wed, 21 Mar 2012 21:40:20 +0000 (22:40 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Mar 2012 14:44:27 +0000 (10:44 -0400)
commit778e629b95c21dfca70d4705baaa1f7e9203fd25
treee2fb96eed82cea1e26d5eaafe7d632df1563d402
parent126f85535f72dbe7fccf9b1a32994727a90ffa3d
shell: correct position of a surface before rotating it.

How to reproduce: rotate the surface to something like 45 degrees,
resize it drastically, continue to rotate. The surface will jump
some space and the rotation point will not be in the center
of the surface.

Fix is to shift the surface position to match the rotation point
src/shell.c