Skip to content

Optionally change all *LoadImage(..., size) APIs to return a cursor with the requested size.

Thomas E. Dickey requested to merge dickey/libxcursor:m21-resize into master

Callers of these APIs (especially on Wayland) currently uses different strategies to scale the returned cursor to the size set by the user, resulting in inconsistent cursor sizes and looks across different apps and toolkits. Having the cursor scaled in libXcursor will skip app's own scaling algorithm and guarantee a consistent look.

*LoadAllImages() are not changed. They still only return the sizes present in the theme.

This change needs to be synchronized to libraries (libxcb-cursor, wayland), toolkits (GTK), window managers / Wayland compositors (i3, wlroots) who have a (modified) copy of libXcursor source code, in order to have a fully consistent cursor size across all apps.

Signed-off-by: Jin Liu m.liu.jin@gmail.com

Merge request reports

Loading