Skip to content

Default-disable SW cursor for Linux - #2134

Open
Rainyan wants to merge 6 commits into
NeotokyoRebuild:masterfrom
Rainyan:bug/linux-sw-cursor-offset
Open

Default-disable SW cursor for Linux#2134
Rainyan wants to merge 6 commits into
NeotokyoRebuild:masterfrom
Rainyan:bug/linux-sw-cursor-offset

Conversation

@Rainyan

@Rainyan Rainyan commented Sep 13, 2026

Copy link
Copy Markdown
Member

Description

Workaround for bug:

This will change cl_software_cursor from bool to per-OS int bitflags, with the current default bitflags being Windows only.

The video menu options for the SW cursor are also updated to toggle the per-platform bitflag. This way, users can have their per-platform cursor preference carry over across Linux/Windows when synced via Steam etc, since only the bit for their current platform is changed.

Worth noting that this doesn't fix #2114 but just works around it, to avoid users having a bad time with their cursor not aligning properly.

Changes introduced

Toolchain

  • Windows MSVC VS2022
  • Fedora Linux 44 (COSMIC) + GCC 16.2.1 20260819 (Red Hat 16.2.1-2)

Linked Issues

Workaround for NeotokyoRebuild#2114

The reason why we still default-enable for Windows is NeotokyoRebuild#1705

Should figure out the actual cause of the offset bug, but it's better to
the kind of cursor which works best for Windows/Linux until then.
cvar type from bool -> int
and use RingBoxFlag for toggling the enum bits
@Rainyan Rainyan added the UI/HUD Relates to the HUD, NeoUI, menus, etc label Sep 13, 2026
@Rainyan
Rainyan requested a review from a team September 13, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Software cursor is unaligned at non-native screen resolutions on Linux

1 participant