When using a dual-monitor or multi-monitor workstation in Ubuntu, you may notice that moving your mouse cursor between screens feels sluggish or interrupted. As the cursor crosses the boundary from one monitor to another, it frequently gets “snagged” or stuck along the edge unless you push the mouse with rapid force. This behaviour is caused by GNOME’s built-in “Sticky Edges” accessibility and window management feature. While designed to help users snap windows to the outer edges of multi-monitor arrays, it creates an annoying friction for everyday desktop navigation. Here is how to disable sticky edges for smooth cursor movement across displays.
What Causes Sticky Edges in Ubuntu?
The Ubuntu desktop environment enables Sticky Edges by default on multi-monitor configurations for two specific reasons:
- Window Snapping Assistance: GNOME Shell includes edge resistance so that dragging an application window to the side of a display triggers half-screen window tiling without accidentally sliding onto the adjoining monitor.
- Corner Hotspot Navigation: The resistance prevents users from accidentally overshooting the top-left Activities hotspot or system dock when targeting screen edges.
However, when simply moving the mouse pointer between displays to read a document or click a browser tab, this resistance feels like cursor lag or hardware stuttering.
Method 1: Turn Off Sticky Edges via Ubuntu Displays Settings (GUI)
In modern Ubuntu LTS releases (including Ubuntu 22.04 LTS and Ubuntu 24.04 LTS), you can toggle this feature directly inside system settings:
- Open the Settings application from your Ubuntu dock or top-right system tray menu.
- In the left-hand navigation pane, click on Displays.
- Ensure your multiple monitors are correctly arranged in the display preview diagram according to their physical desktop layout.
- Scroll down past the display resolution and scaling options to locate the Multiple Displays section.
- Find the toggle switch labelled Sticky Edges.
- Click the toggle switch to set it to Off.
The change applies immediately. Move your cursor back and forth between your monitors; the cursor will now glide effortlessly across the boundary with zero resistance or hitching.
Method 2: Disable Sticky Edges via Terminal (gsettings)
If you prefer using the command line or are configuring settings on multiple remote desktop systems via scripts, you can modify the setting using gsettings:
Command to Disable Sticky Edges
Open Terminal (Ctrl + Alt + T) and enter the following command:
gsettings set org.gnome.mutter edge-tiling false
Alternatively, to specifically disable the monitor barrier while preserving window tiling:
gsettings set org.gnome.desktop.interface cursor-border-barrier false
Command to Restore Sticky Edges
If you ever wish to re-enable boundary resistance in the future, run:
gsettings reset org.gnome.mutter edge-tiling
Configuring Screen Alignment to Prevent Cursor Traps
Even with Sticky Edges disabled, a mouse pointer can still get stuck if your displays have mismatched resolutions (for example, a 4K monitor next to a 1080p monitor) or are misaligned in system settings:
- Open Settings > Displays.
- Inspect the virtual monitor boxes at the top of the window.
- If the tops or bottoms of the boxes do not align evenly, the mouse cursor cannot cross through the “dead zones” where no adjacent screen pixels exist.
- Click and drag the smaller monitor box up or down so its boundary aligns perfectly with the primary path where you usually cross between screens (typically aligning top borders or bottom borders).
- Click Apply to confirm.
Comparison: Sticky Edges Enabled vs Disabled
| Feature | Sticky Edges Enabled (Default) | Sticky Edges Disabled (Optimised) |
|---|---|---|
| Cursor Transition | Requires fast mouse velocity to overcome boundary barrier | Completely seamless; glides instantly across pixels |
| Window Snapping | Easily snaps half-screen windows between displays | Requires using Super + Left/Right arrow keys for tiling |
| Dual-Monitor Gaming | Can cause cursor lag during multi-screen mouse panning | Uninterrupted border traversal across gaming viewports |
Frequently Asked Questions
Can I still snap windows to half the screen without sticky edges?
Yes. You can snap windows at any time using standard Ubuntu keyboard shortcuts: press Super (Windows Key) + Left Arrow to snap to the left half, or Super + Right Arrow to snap to the right half.
Does disabling sticky edges affect fractional display scaling?
No. Display scaling (125%, 150%, 200%) and refresh rates operate completely independently of the cursor boundary resistance toggle.
Why does my mouse still get stuck in the top corner?
GNOME Shell reserves the top-left corner as the “Hot Corner” to trigger the Activities overview. If your mouse gets caught in the extreme corner, navigate to Settings > Multitasking and toggle off Hot Corner.