linux: create a hidden window inside the platform

It allows us to receive messages from the dispatcher,
which breaks us out of waiting and lets us execute
main thread runnables as a part of the main loop.
This commit is contained in:
Dzmitry Malyshau 2024-02-04 23:52:22 -08:00
parent 282cc71df9
commit 521b2b12e4
4 changed files with 80 additions and 39 deletions

View file

@ -237,6 +237,7 @@ impl LinuxWindowState {
if let Some(fun) = self.callbacks.lock().close.take() {
fun();
}
self.xcb_connection.flush().unwrap();
}
pub fn expose(&self) {