Make x11 backend take &mut self in poll_events method

This commit is contained in:
mitchmindtree 2017-06-09 22:55:48 +10:00
parent 0af3c04900
commit 4b42af910b

View file

@ -117,7 +117,7 @@ impl EventsLoop {
}
}
pub fn poll_events<F>(&self, mut callback: F)
pub fn poll_events<F>(&mut self, mut callback: F)
where F: FnMut(Event)
{
let xlib = &self.display.xlib;