No native titlebar in Linux with `window.titleBarStyle` set to `native`

I believe this is a direct result of the fix for issue Double window header on Gnome · Issue #837 · getcursor/cursor · GitHub.

I really like my window decoration from Plasma, so I kindly request that you can honor the window.titleBarStyle settings. I prefer not to use custom title bars, as they often vary significantly from one application to another.

Thank you!

settings.json:

{
  "window.titleBarStyle": "native"
}

Version: 0.48.2
VSCode Version: 1.96.2
Commit: 7d6318dfcfbf7c12a87e33c06978f23167a6de30
Date: 2025-03-26T02:44:02.155Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.12.10-arch1-1

2 Likes

I’m also experiencing this issue.

Version: 0.48.6
VSCode Version: 1.96.2
Commit: 1649e229afdef8fd1d18ea173f063563f1e722e0
Date: 2025-03-31T05:05:28.011Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.11.0-21-generic

1 Like

I have the same problem. When I set native there is no system title bar at all. My expectation would be that the system title bar would be present.

Also, when native is selected the menu bar disappears which is also unexpected as I wouldn’t expect the menus to be part of the native frame.

I’m running Cursor as an appImage and attempts to do things such as --disable-features=ElectronForceFrameless also fail to fix the problem.

I have tried running Cursor under Wayland and x11 and both have the same problem. I really like Cursor though.

Version: 0.48.8
VSCode Version: 1.96.2
Commit: 7801■■■6824585b7f2721900066bc87c4a09b740
Date: 2025-04-07T19:55:57.662Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 5.14.0-503.35.1.el9_5.x86_64

1 Like

I am also experiencing this issue with latest version of cursor (0.48). Running Kubuntu 24.04.

1 Like

Same issue, no title bar. Using Ubuntu 22.04

Version: 0.49.6
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:44:33.500Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.8.0-58-generic

N.B: Just in case it’s useful — I had the same issue with another Linux app (LocalWP) not long ago, and they’ve already fixed it. Link: I can't maximize or move LocalWP on Ubuntu 24 - Support - Local Community

1 Like

I am able to reproduce this problem as well. This is on Wayland, KDE Plasma, OpenSUSE Tumbleweed, AppImage.

Version: 0.49.6
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:44:33.500Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.14.4-1-default

1 Like

I have also experienced this issue. The only workaround I found with KDE Plasma was to force ‘no titlebar and frame’ to ‘No’ in Settings->Window Management->Window Rules

1 Like

The issue with that solution is that the menu bar (File, Edit, View, Help) disappears and can’t even be summoned with the alt key.

2 Likes

Same issue on Wayland + Sway. Prior to this regression the menu (File, Edit, View, …) were shown in the native Gtk2 theme and style. Now they are gone, and cannot be summoned with Alt key either when window.menuBarVisibility=toggle mode is set.

Settings tested so far:

  • window.titleBarStyle=native
  • window.menuBarVisibility
    • classic OR
    • visible OR
    • toggle + Alt key press
  • window.customTitleBarVisibility
    • auto OR
    • windowed

What doesn’t work: Title bar menu is not shown in any of these test cases.

What works:

  • Setting window.dialogStyle=native shows other native Gtk2 dialogs in native theme and style.
    • The lower left “gear” icon (with tooltip “Manage”) shows a native Gtk2 popover menu in the native theme and style when clicked.
      • This is the one that opens to reveal choices: "Command Palette, Profiles, Settings, Extensions, Keyboard Shortcuts, Snippets, Tasks, Themes, Check for Updates
  • The title bar itself is shown, with the window.title format string
    • I had this set to: “${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}${appName}
  • Setting window.titleBarStyle=custom works in all possible enumerated cases of window.menuBarVisibility.
    • The “custom” style draws the menu using only “Custom” or “client-side” decorations.
    • No native Gtk theme or style decorations are shown in this mode.

It seems that this is related to a recent regression in Cursor, which caused it to deviate from the typical VSCode / Electron behavior.

Notes:

  • Confirmed that it affects Cursor versions: 0.50.5 up to latest 1.0.0
  • Last known working version: 0.44.9
    • I was unable to test versions between 0.44.9 and 0.50.5 due to this issue where only the latest download link is available.
  • None of these versions appear to have the brand new window.menuStyle setting listed or available yet in the Settings view.
  • The problem does not exist in vanilla VSCode (native menus are shown OK):
Expand for working vanilla VSCode + Electron, Chromium versions
Version: 1.100.2
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-21T09:36:24.436Z
Electron: 34.5.6
ElectronBuildId: undefined
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
1 Like

+1. On Pop!_OS 22.04 (GNOME + X11) setting:

“window.titleBarStyle”: “native”

results in no title bar or buttons in Cursor’s AppImage, while all other apps respect the system-wide left-side button layout. Instead, Cursor shows buttons on the right, conflicting with GNOME’s configuration.