1
0
Fork 0

Add method to window so user can get window info

This commit is contained in:
Billy Messenger 2020-09-11 14:52:32 -05:00
parent 9bf1fa08bb
commit 3e4c1edfc7

View file

@ -162,6 +162,10 @@ impl Window {
Ok(())
}
pub fn window_info(&self) -> &WindowInfo {
&self.window_info
}
#[inline]
fn drain_xcb_events<H: WindowHandler>(&mut self, handler: &mut H) {
while let Some(event) = self.xcb_connection.conn.poll_for_event() {