compositor: Fix cursor positioning right after input_device.attach
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 15 May 2012 13:14:47 +0000 (16:14 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 15 May 2012 14:59:24 +0000 (10:59 -0400)
commitf6f9069138f65dad4f3aa01b3413ba7d7dbf398a
tree534709ef25c7cbb738634e6aac6744ccdba83921
parent6d2030dabb9dac305e3c051b25c16ae6963961a1
compositor: Fix cursor positioning right after input_device.attach

The type of fields x and y in wl_input_device was changed to wl_fixed_t
but input_device_attach() was still using it as if it were integer.
This bug caused the pointer sprite to be configured in the wrong place
on the screen (usually outside the visible area) but it would soon be
corrected in notify_motion() making it hard to notice and usually only
causing a quick flicker.
src/compositor.c