mir: clear screen, keymap and event source when disposing dpy