Skip to content

Expose process_event#1

Open
zdave wants to merge 1 commit into
pcwalton:masterfrom
zdave:process-event
Open

Expose process_event#1
zdave wants to merge 1 commit into
pcwalton:masterfrom
zdave:process-event

Conversation

@zdave
Copy link
Copy Markdown

@zdave zdave commented Oct 3, 2020

Plugging this into the X event loop allows setting changes to be detected.

@zdave zdave force-pushed the process-event branch 2 times, most recently from d601fc7 to bc27104 Compare October 3, 2020 14:24
@zdave
Copy link
Copy Markdown
Author

zdave commented Mar 13, 2022

Any chance of this getting merged? I've been using this locally as part of a change to winit (https://github.com/rust-windowing/winit) to support DPI coming from xsettings. It would be great to be able to open a pull request for that change without a hack to work around process_events not being exposed here.

I believe that process_event not being unsafe is fine, as the self argument is mut (preventing concurrent calls to get_setting) and event is a reference rather than a pointer, so ought to be valid. I am very much not a Rust expert though.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant