Disabling swipe to switch workspaces

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Red Hat Enterprise Linux (RHEL) 9

Issue

Swiping up or down with three fingers switches the workspace on a touch screen.

Resolution

You can disable the workspace switching.

Root Cause

The default behavior of the GNOME desktop.

Diagnostic Steps

  1. Log into the GNOME desktop session.

  2. Install the gnome-shell-extension-gesture-inhibitor package:

    # dnf install gnome-shell-extension-gesture-inhibitor
    
  3. Restart your your desktop session.

  4. Enable the gesture-inhibitor GNOME Shell extension.

    On RHEL 9, you can use the following command:

    $ gnome-extensions enable gesture-inhibitor@gnome-shell-extensions.gcampax.github.com
    
  5. Restart your desktop session.

  6. Disable the workspace switching using the extension:

    $ gsettings set org.gnome.shell.extensions.gesture-inhibitor workspace-switch false
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments