Focus the window under your cursor when exiting GNOME Overview — just like macOS Mission Control.
The Problem: GNOME always returns focus to the previously focused window when you exit Overview, even if your cursor is somewhere else.
The Solution: This extension focuses whatever window your cursor is pointing at when you close Overview.
| Your Action | Result |
|---|---|
| Hover a window thumbnail → Close Overview | That window gets focus ✅ |
| Move cursor over empty space → Close Overview | Window under cursor gets focus ✅ |
| Don't move cursor → Close Overview | Focus stays unchanged ✅ |
Install from the official GNOME Extensions site: https://extensions.gnome.org/extension/9578/focus-under-cursor-on-overview-exit/
curl -fsSL https://raw.githubusercontent.com/dalpat/focus-under-cursor/main/install.sh | bashgit clone https://github.com/dalpat/focus-under-cursor.git
cd focus-under-cursor
./install.shNote: On Wayland, log out and back in. On X11, press Alt+F2, type r, press Enter.
Open settings with:
gnome-extensions prefs focus-under-cursor@extensionFocus window under cursor when no preview was hovered
Controls whether hovering a window preview focuses it when you haven't moved your pointer.
- ON: Hovering any window preview focuses it immediately, even if you haven't moved your mouse since opening Overview
- OFF (default): Focus only changes if you actually move your pointer onto a preview
Example: If you open Overview with Super key and your mouse happens to be over a window preview, but you don't move the mouse:
- Setting ON: That window gets focused when you close Overview
- Setting OFF: Focus stays on whatever window was active before
Works with GNOME Shell 45, 46, 47, 48, 49, and 50.
GPL-2.0-or-later