compositor-drm: ignore hotplug-events from other devices
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 11 Mar 2012 19:05:21 +0000 (20:05 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 11 Mar 2012 19:54:49 +0000 (15:54 -0400)
commitd7488c2f5b3832a668dacb13e9a74a000af927a8
tree12667bfb225893808ec80e732c0513a4ab7eb44b
parenteb866cd9fe5939efed532f4eb400cd889c00c2f4
compositor-drm: ignore hotplug-events from other devices

If we have multiple video devices on the system (card0, card1), we should
ignore hotplug events for cards that we do not use. This avoids calling
update_outputs() if the event was not generated by our device so we avoid
refreshing the DRM information if it didn't change.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/compositor-drm.c