[mac]add x mode to node-webkit

  temp fix patch, relate to #1