Make sure XFixes invisible cursor gets freed on server reset
authorKeith Packard <keithp@keithp.com>
Fri, 30 Apr 2010 23:10:32 +0000 (16:10 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 3 May 2010 17:27:35 +0000 (10:27 -0700)
commita3f5d30ba61e70b3de8b48754dea32715ba93c40
treeb27180f5d703285f60961c8fdcf17d1d38b7bfe4
parentcdeb2c23f80ced961fe205125547e16905885534
Make sure XFixes invisible cursor gets freed on server reset

This uses the same hack that dix uses for the rootCursor -- allocate
a resource ID for the invisible cursor so that it gets freed at reset
time. This also allows us to unconditionally create it during
extension initialization; necessary as the privates layout may well be
different on subsequent generations.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
xfixes/cursor.c