Skip to content

Commit b207725

Browse files
committed
wip
1 parent 6fb524e commit b207725

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/platform/x11/event_loop.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl EventLoop {
7070
}
7171

7272
// Event loop
73-
pub fn run(mut self) {
73+
pub fn run(mut self) -> Result<()> {
7474
let connection = Rc::clone(&self.window.connection);
7575
let mut poller = ConnectionPoller::new(&connection.conn)?;
7676

@@ -116,6 +116,8 @@ impl EventLoop {
116116
}
117117

118118
poller.delete()?;
119+
120+
Ok(())
119121
}
120122

121123
fn handle_xcb_event(&mut self, event: XEvent) {

src/platform/x11/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl WindowHandle {
3232
thread::spawn(move || match create_window(options, handler, Some(parent_handle)) {
3333
Ok(ev_loop) => {
3434
tx.send(Ok(ev_loop.window_id())).unwrap();
35-
ev_loop.run()
35+
ev_loop.run().unwrap();
3636
}
3737
Err(e) => {
3838
tx.send(Err(format!("{}", e))).unwrap();

0 commit comments

Comments
 (0)