[BUG] Claude Desktop window raises to front on mouse hover (LinuxMint/Cinnamon), unlike other Electron apps
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
On Linux Mint 22.1 (Cinnamon), the Claude Desktop window comes to the front and steals focus whenever the mouse cursor merely touches any part of the window — even without clicking. This happens while another window is active and in front. It does not happen with other applications, including other Electron apps on the same system (VSCode) or non-Electron apps (Firefox).
Environment
- OS: Linux Mint 22.1
- Desktop Environment: Cinnamon (Muffin window manager)
- App: Claude Desktop (latest)
What Should Happen?
Claude Desktop should only gain focus/raise on an explicit user action (click), matching standard window behavior and the behavior of every other app on the system.
Actual Behavior
Claude Desktop raises to the front on mouse-over alone.
Error Messages/Logs
Steps to Reproduce
- Open Claude Desktop and another application (e.g., a terminal or Firefox window).
- Bring the other application to the front so it's the active/focused window.
- Move the mouse cursor so it merely passes over any part of the Claude Desktop window, without clicking.
- Observe Claude Desktop immediately raises to the front and takes focus.
Claude Model
_No response_
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.201 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Troubleshooting Already Done
- Cinnamon focus settings: Checked Menu > Settings > Windows > Focus. Window focus mode and "Automatically raise focused windows" don't explain this, since a WM-level setting would affect all windows equally — but Firefox and VSCode are unaffected under the same settings.
- Always on Top: Confirmed via window titlebar context menu that "Always on Top" is not enabled for the Claude window.
- xprop: Compared _NET_WM_STATE, WM_HINTS, and _NET_WM_WINDOW_TYPE between Claude Desktop and Firefox. The only notable difference found was _NET_WM_BYPASS_COMPOSITOR = 2, which per the EWMH spec only requests that the compositor not disable compositing for the window — unrelated to focus or stacking behavior.
- xev: Watched X11 events on the Claude Desktop window while hovering into it from outside. No EnterNotify or other unusual event appeared that would explain a raise being triggered at the X11 level.
- Other Electron apps: VSCode, also Electron-based, does not exhibit this behavior on the same system, ruling out a generic Electron/Linux windowing issue.
Add'l Notes
Given the above, this appears to be specific to how Claude Desktop's BrowserWindow is configured or how it handles focus/show internally, rather than a system-level or generic Electron issue. There doesn't appear to be an in-app setting to disable this behavior.
Relates to #73627. Note that this is calude-desktop behavior.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗