anvil: clear window map on drop

This commit is contained in:
Victor Brekenfeld 2018-11-28 16:16:32 +01:00
parent f8a5e8bfde
commit 99f9156f64
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ pub fn run_udev(mut display: Display, mut event_loop: EventLoop<()>, log: Logger
} }
} }
window_map.borrow_mut().clear();
let mut notifier = session_event_source.unbind(); let mut notifier = session_event_source.unbind();
notifier.unregister(libinput_session_id); notifier.unregister(libinput_session_id);
notifier.unregister(udev_session_id); notifier.unregister(udev_session_id);