How to Fix Built-in or Magic Keyboard and Trackpad Lag on macOS

Stop stuttering mouse pointers, delayed keystrokes, and erratic scrolling gestures on MacBook and desktop Macs.

How to Fix Built-in or Magic Keyboard and Trackpad Lag on macOS

When your cursor stutters across the screen or typed letters appear seconds after pressing keys, the Mac WindowServer compositor is struggling with frame timing.

Why This Problem Happens

  • WindowServer process encountering GPU memory leaks.
  • Bluetooth polling interference from 2.4GHz USB devices.

Step-by-Step Troubleshooting Procedure

Step 1: Restart WindowServer by Logging Out

Objective: Flush graphical compositor state.

  1. Click the Apple logo > Log Out …
  2. Log back in to reset the WindowServer process without a full reboot.

Step 2: Turn Off “Shake mouse pointer to locate”

Objective: Eliminate gesture acceleration bugs.

  1. Go to System Settings > Accessibility > Display.
  2. Toggle off “Shake mouse pointer to locate”.

Step 3: Reset Bluetooth Controller Pairing

Objective: Clear laggy Magic Trackpad connection.

  1. Unpair your Magic Trackpad in Bluetooth settings, turn off the hardware power switch for 10 seconds, then reconnect via Lightning/USB-C cable.

Verified Troubleshooting Tips

  • Check Activity Monitor for WindowServer CPU usage; if above 40% while idle, disable animated desktop wallpapers.

Frequently Asked Questions

Does high display scaling cause UI lag?

Yes. Setting scaling to “More Space” forces the GPU to render at high virtual resolutions before downsampling.