bugfix for socket, send focused instead of background event