shell: fix matrix invertible bug in rotation handler
authorRafal Mielniczuk <rafal.mielniczuk2@gmail.com>
Thu, 22 Mar 2012 21:22:04 +0000 (22:22 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 23 Mar 2012 02:34:11 +0000 (22:34 -0400)
commit2d7ab82d7407a0bfa96041421dbb62c8e87861d1
treec1cf9653c6523cd2a0b4b98ebf7c051295da0d0c
parenta3aa9c9dd6d4e7b8d7df347ad1d5d981f43f5057
shell: fix matrix invertible bug in rotation handler

While activating and deactivating rotation mechanism without moving
the pointer, rotation matrix from rotate_grab object is not being
initialised and damage shell surface rotation matrix in
rotate_grab_button handler, making it invertible.

This patch initialise rotate matrix in rotate_binding
and moves surface position check to rotate_grab_motion handler.
src/shell.c