Fix incorrect handling of xcb event, fixing tray plugin.