Skip to content

add new wayland cursors #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 25, 2025

Conversation

m4rch3n1ng
Copy link
Contributor

@m4rch3n1ng m4rch3n1ng commented Mar 7, 2025

added the new dnd-ask and all-resize as specified in wayland/wayland-protocols!294. one concern is, that the names might not be final (especially for dnd-ask), and changing them later would be a breaking change. i think that could potentially be mitigated by adding a new enum variant and deprecating the current, but i also think that it will probably take some time (if it will even happen) for wayland to change the naming, so it should probably be fine for a while.

mutter falls back to dnd-copy and dnd-move while kwin falls back to copy and move. since this repo consistently uses the dnd-less versions, i decided to fall back to copy and move respectively.

i don't know what description to add to those: breeze doesn't have them and the only ones i could find for the new dnd-ask icon were in the adwaita docs and from bibata who are drawing them very differently. (though bibata does some other strange decisions like having a different cursor for dnd-copy and copy). if you want me to i could add a description like /// Often drawn as an arrow with either a small question mark or three dots next to it, but i just left it for now.

@Enokilis
Copy link

Enokilis commented Mar 8, 2025

I wouldn't bet on 'move' ever having its common use case reinterpreted when all three major platforms treat it as 'all-resize' is described. It would be really nice if the CSS spec were less ambiguous and had some meaningful reference cursors.

@madsmtm madsmtm added the enhancement New feature or request label May 22, 2025
Copy link
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with this with the comments below resolved. Again, while this library does follow the W3C spec, I do not believe we need to limit ourselves to that (as long as it's clearly stated so in docs).

@m4rch3n1ng m4rch3n1ng force-pushed the add-a-few-missing-shapes branch from feddad0 to f64d8c1 Compare May 22, 2025 19:05
@madsmtm madsmtm requested a review from kchibisov May 22, 2025 19:19
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clearly indicate in the docs that those 2 new icons are not part of the w3c spec we refer to and that they may generally not be present as is.

@m4rch3n1ng
Copy link
Contributor Author

@kchibisov i added a note in the doc comments for these two icons in [f64d8c1], where else should i add them?

@kchibisov
Copy link
Member

Also need a CHANGELOG entry.

@m4rch3n1ng m4rch3n1ng force-pushed the add-a-few-missing-shapes branch from f64d8c1 to 904c2fa Compare May 23, 2025 14:46
@m4rch3n1ng
Copy link
Contributor Author

m4rch3n1ng commented May 23, 2025

Also need a CHANGELOG entry.

done

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think like that is a bit clear, since those also work on X11.

@m4rch3n1ng m4rch3n1ng force-pushed the add-a-few-missing-shapes branch from 904c2fa to 4112eb9 Compare May 23, 2025 14:56
@kchibisov kchibisov merged commit 7a3f2e3 into rust-windowing:main May 25, 2025
4 checks passed
@m4rch3n1ng m4rch3n1ng deleted the add-a-few-missing-shapes branch May 25, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

4 participants