evdev: reuse code for device removal
authorTiago Vignatti <tiago.vignatti@intel.com>
Tue, 27 Mar 2012 18:26:01 +0000 (21:26 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Mar 2012 20:36:54 +0000 (16:36 -0400)
commitdb4ecc61a717fae5eaa44dd374d2a9d9d8adf715
tree0519bafe8a4b4d3cd82f516f2f200dcd472ca298
parent7fb9f95dce600d0f6113ea0226ed5f10882c3de7
evdev: reuse code for device removal

Just like device_added, now the routines to close the compositor and vt switch
leave are using the same code to remove a device.

This patch also closes properly a mtdev device, bug spotted by Christopher
Michael.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
src/evdev.c