RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
267 stars 57 forks source link

X11: Split off the event loop into a separate module #183

Closed prokopyl closed 6 months ago

prokopyl commented 6 months ago

This PR splits off the X11 event loop logic into a separate module. It also changes the X11 implementation of the Window type to take only a shared reference to the inner type (&WindowInner instead of &mut WindowInner), bringing it in line with the other backends.

This does not change any of the logic however, it only separates some of the window state from the event loop state, to make sure they don't step on each other's toes in the future (particularly around the WindowHandler).

This is part of the effort to split up #174 into smaller pieces.