use wlr_surface on shell struct and listen to events

This commit is contained in:
Tony Crisci 2017-09-12 06:18:52 -04:00
parent b2c71287f2
commit 9d2dc8447a
3 changed files with 16 additions and 6 deletions

View file

@ -102,7 +102,7 @@ static void handle_output_frame(struct output_state *output,
struct wlr_xdg_surface_v6 *xdg_surface;
wl_list_for_each(xdg_surface, &sample->xdg_shell->surfaces, link) {
output_frame_handle_surface(sample, wlr_output, ts,
xdg_surface->surface);
xdg_surface->surface->resource);
}
struct wlr_x11_window *x11_window;
wl_list_for_each(x11_window, &sample->xwayland->displayable_windows, link) {