plugin: Use the clutter xdisplay for has_swap_events

The filter now runs on the backend connection.