Cursor + ubuntu 22.04, gnome freeze when right click the titleBar

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Ubuntu version is 22.04
Version: 2.4.23
VSCode Version: 1.105.1
Commit: 379934e04d2b3290cf7aefa14560f942e4212920
Date: 2026-01-29T21:24:23.350Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.2.0-26-generic

I tried version 2.0, 2.2, 2.3 from Download · Cursor.
Installed by sudo dpkg -i xxx.deb.
The gnome will be dead or freezed when I right-clicked the titlebar of the cursor.
And it recover when I killed gnome-shell or killed cursor

journalctl -xe, related syslogs:
gnome-shell[73565]: clutter_actor_set_allocation_internal: assertion ‘!isnan (…)’ failed
Actor tried to allocate a size of -2147483648.00 x -2147483648.00

It also happened on another computer with 22.04 and cursor,and 20.04 will not.

Steps to Reproduce

  1. ubuntu 22.04
  2. use curso_xxx.deb from Download · Cursor.
  3. sudo dpkg -i curso_xxx.deb which u downloaded in step 2
  4. open cursor IDE
  5. right-click titilebar, when it appear the context menu
  6. observe if there is still any response on the desktop. The terminal can be restarted and the mouse can be moved, but there is no new response when clicking with the mouse

Operating System

Linux

Version Information

Version: 2.4.23
VSCode Version: 1.105.1
Commit: 379934e04d2b3290cf7aefa14560f942e4212920
Date: 2026-01-29T21:24:23.350Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.2.0-26-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report with logs and repro steps.

This looks like a GNOME-specific issue with how Cursor’s context menu interacts with the shell. The Clutter allocation error with -2147483648 (integer overflow) suggests the menu is getting invalid sizes during rendering.

A couple of workarounds to try:

  1. Try running Cursor with the native title bar. Add "window.titleBarStyle": "native" to your settings.json.
  2. Or try the Ozone/Wayland flags if you’re on Wayland: cursor --enable-features=UseOzonePlatform --ozone-platform=wayland

Which display server are you using, X11 or Wayland? You can check with echo $XDG_SESSION_TYPE.

I’ve passed this to the team. Your logs are helpful for finding the root cause. Let me know if either workaround helps.

Thanks.

I’m sure I’m in X11, and with gnome-shell --version GNOME Shell 42.9 which is matched with ubuntu 22.04 after sudo apt upgrade.

I tried set window.titleBarStyle to native, it worked. But It will change the apperance of cursor. The title bar are splited in two slips :grin: , sense of division discomfort users, so I don’t think it’s the best solution.

This problem doesn’t happen in VSCode.

1 Like