Revert "plugin: Don't query for swap_events support directly"

This reverts commit e23c2ffecc61c088f10480c890077488d2d9c5f5.

The patch was intended as a cleanup but accidently removed the setting of the
event base, breaking the swap event handling.

With the event base setting removing the other code isn't much of a cleanup so
just revert it.