Skip to content

Conversation

@pmenzel
Copy link
Contributor

@pmenzel Paul Menzel (pmenzel) commented Oct 14, 2026 •

AI disclaimer: This merge/pull request was generated by claude-opus-5.5 and reviewed by Paul Menzel (@pmenzel).

In a COSMIC session (cosmic-comp 1.9.0) the cursor icon for resizing with
corners are missing, and with Firefox 157 as native Wayland client, the
mouse cursor shrinks when it moves over a Firefox window. The user journal
show cosmic-comp logging:

    Unable to load xcursor, using fallback cursor err=NoDefaultCursor

Neither XCURSOR_THEME nor the GTK setting cursor-theme is set, so
cosmic-comp (xcursor crate), GTK (libwayland-cursor), and X11 clients
(libXcursor) all look up the cursor theme named “default”. MarIuX has no
`/usr/share/icons/default`, and no bee package owns that path. So each side
falls back to its own built-in arrow: cosmic-comp draws its 64×64 fallback
image (visible arrow 21×31 px, `src/backend/render/cursor.rs`, lines 85–112
at epoch-1.9.0), while libwayland-cursor in Firefox draws the classic X11
core cursor (8×14 px).

Install `cursor-theme/index.theme` as
`$usr_prefix/share/icons/default/index.theme`, making the theme “default”
inherit Adwaita, whose cursors are already installed in
`/usr/share/icons/Adwaita/cursors` (adwaita-icon-theme-3.34.0-1). None of
the three libraries searches `/etc`, but all of them search
`/usr/share/icons`. Debian does the same, there via the alternative
x-cursor-theme. As the cursor theme is site policy, put it into mxtools
like `applications-defaults/defaults.list`.

Tested on *machdoch* with a nested cosmic-comp (COSMIC_BACKEND=winit on
Xvfb) and Firefox, with the same file found through

    XCURSOR_PATH=$W/icons:/usr/share/icons:/usr/share/pixmaps

The fallback warning is gone. Firefox now shows the Adwaita arrow
(15×21 px), and cosmic-comp the Adwaita resize cursor at the window border.

Link: https://specifications.freedesktop.org/icon-theme-spec/latest/
Assisted-by: claude-opus-5.5 (Claude Code)
@pmenzel Paul Menzel (pmenzel) force-pushed the cursor-theme-default-adwaita branch from 5b4dc78 to e2343fd Compare October 14, 2026 13:14
@pmenzel Paul Menzel (pmenzel) merged commit cd858ea into master Oct 14, 2026
@pmenzel Paul Menzel (pmenzel) deleted the cursor-theme-default-adwaita branch October 14, 2026 13:15
Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant