window: add display_destroy()
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 15 Dec 2011 13:20:04 +0000 (15:20 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Thu, 22 Dec 2011 09:27:50 +0000 (11:27 +0200)
commitfe6079ac0987d78873d5aa582d780957056b7119
tree1031f0b892f5ef9151afb3f69013daa53a9088e4
parent826d7954481c4bbee38ed0f70171e621827e2f78
window: add display_destroy()

Add a function to destroy the 'struct display', supposedly with all
contained resources, that are not explicitly created by the application.

The implementation at this time is incomplete. It does clean up the
following:
- xkb structure is freed (needs new libxkbcommon from git)
- EGL resources are freed
- wl_display is flushed and destroyed

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c
clients/window.h