Skip to content

Make set_device_event_filter non-mut#2323

Merged
kchibisov merged 1 commit intorust-windowing:masterfrom
kchibisov:fix-device-event-filter
Jun 10, 2022
Merged

Make set_device_event_filter non-mut#2323
kchibisov merged 1 commit intorust-windowing:masterfrom
kchibisov:fix-device-event-filter

Conversation

@kchibisov
Copy link
Member

Commit f10a984 added EventLoopWindowTarget::set_device_event_filter
with for a mutable reference, however most winit APIs work with
immutable references, so altering API to play nicely with existing APIs.

This also disables device event filtering on debug example.

cc @chrisduerr

Commit f10a984 added `EventLoopWindowTarget::set_device_event_filter`
with for a mutable reference, however most winit APIs work with
immutable references, so altering API to play nicely with existing APIs.

This also disables device event filtering on debug example.
@kchibisov kchibisov merged commit eec84ad into rust-windowing:master Jun 10, 2022
@kchibisov kchibisov deleted the fix-device-event-filter branch June 10, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant