Add a surface destroy callback and use it for focus tracking

This commit is contained in:
Kristian Høgsberg 2010-12-06 16:43:16 -05:00
parent 7d564d93eb
commit c551bd2ae8
4 changed files with 71 additions and 35 deletions

View file

@ -41,12 +41,6 @@ struct wlsc_matrix {
struct wlsc_surface;
struct wlsc_listener {
struct wl_list link;
void (*func)(struct wlsc_listener *listener,
struct wlsc_surface *surface);
};
struct wlsc_output {
struct wl_object object;
struct wl_list link;
@ -106,7 +100,7 @@ struct wlsc_input_device {
uint32_t grab_button;
struct wl_drag *drag;
struct wlsc_listener listener;
struct wl_listener listener;
};
struct wlsc_drm {