shell: fix move of transformed surfaces
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 30 Jan 2012 12:16:34 +0000 (14:16 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Tue, 31 Jan 2012 11:12:11 +0000 (13:12 +0200)
commit7b3bd3d8b6a42c59ec19b1453544b625de8deedf
treee27388c81393f2119c68b00e6bd0763821bdc8ff
parentbecfcbfbd29de1a59ae4c7c272bdad4fc1023a15
shell: fix move of transformed surfaces

In the stack of transformations, change the rotation to be applied
to the surface before the absolute positioning. Doing so avoids having
to undo and redo the absolute positioning, and we can simply use the
surface center in local coordinates as the origin.

This fixes the surface move. Before, the surface moved along the surface
local axis, but the user expects it to move along the global axis with
the pointer.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/shell.c