Windows desktop app: main window is always-on-top (WS_EX_TOPMOST) with no way to disable it

Status Fixed / completed
Maintainer reply None cached
Activity 2 comments · opened Aug 26, 2026 · closed Aug 27, 2026

Description

The main window of the Claude Code desktop app for Windows stays on top of all other windows. It cannot be pushed behind another application, and the behaviour survives a full restart of the app.

Environment

  • Claude Code desktop app for Windows
  • Windows 11 Enterprise 10.0.26100

Evidence

GetWindowLong(hWnd, GWL_EXSTYLE) on the app's main window returns 0x00280108. Bit 0x8 is WS_EX_TOPMOST, so the window is explicitly marked always-on-top.

The app appears to set this itself:

  • No always-on-top utility is running. Checked for PowerToys, DeskPins, TurboTop and WindowTop — none present.
  • %APPDATA%\Claude\claude_desktop_config.json and the other JSON files under %APPDATA%\Claude and %LOCALAPPDATA%\Claude-Data contain no always-on-top / topmost / pin setting.
  • No toggle is exposed in the title bar or in any menu of the app.
  • The flag is present again after restarting the app.

Workaround

Clearing the flag from outside the process works, but only until the next restart:

# HWND_NOTOPMOST = -2, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE = 0x0013
SetWindowPos($hWnd, [IntPtr](-2), 0, 0, 0, 0, 0x0013)

After this call the extended style reads 0x00280100 and the window behaves normally.

Expected behaviour

The main window should not be topmost by default. If always-on-top is intentional, it should be exposed as a user-facing toggle so it can be turned off.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗