-linux: ungrab keyboard/mouse when focus out and regrab them when focus in