You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
515 B

  1. /**
  2. * Disable Gestures
  3. *
  4. * Gnome extension that disables the built in gestures. Useful for kiosks and touch screen apps where they may interfere.
  5. *
  6. * Matt Bell 2016
  7. * Thanks to Stackoverflow question #36896556 kepler_kingsnake
  8. */
  9. // When the extension is enabled, disable the gestures
  10. function enable() {
  11. global.stage.get_actions().forEach(a => a.enabled = false);
  12. }
  13. // When the extension is disabled, enable the gestures
  14. function disable() {
  15. global.stage.get_actions().forEach(a => a.enabled = true);
  16. }