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:
parent
282cc71df9
commit
521b2b12e4
4 changed files with 80 additions and 39 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue