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.
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.