Skip to content

Make mouse::Button::Other take u16 instead of u8#1797

Merged
hecrj merged 1 commit into
iced-rs:masterfrom
bbb651:master
May 23, 2023
Merged

Make mouse::Button::Other take u16 instead of u8#1797
hecrj merged 1 commit into
iced-rs:masterfrom
bbb651:master

Conversation

@bbb651

@bbb651 bbb651 commented Apr 14, 2023

Copy link
Copy Markdown
Contributor

On wayland keys correspond to <input-event-codes.h>, and they are past the limit of u8, causing the
back and forward buttons to be 20 and 19 which definitely isn't right (they should all be around 0x110..=0x117).

This is a breaking change but will probably only affect apps on wayland relying on these wrong codes,
I also have a winit pr that will also necessitate a breaking change to this enum,
maybe this should wait so both of these should be done at the same time.

@i509VCB

i509VCB commented Apr 15, 2023

Copy link
Copy Markdown

Technically for Wayland the Other variant would need to be a full u32. However winit seems to only go to a u16 which is interesting.

@hecrj hecrj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@hecrj hecrj added bug Something isn't working shell labels May 23, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 23, 2023
@hecrj hecrj enabled auto-merge May 23, 2023 00:08
@hecrj hecrj disabled auto-merge May 23, 2023 00:33
@hecrj hecrj enabled auto-merge May 23, 2023 00:33
On wayland keys correspond to <input-event-codes.h>,
and they are past the limit of u8, causing the
back and forward buttons to be 20 and 19 which definitely isn't right
(they should all be around 0x110..=0x117).
@hecrj hecrj merged commit e31582e into iced-rs:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants