x11 -> xwayland, window -> surface, fix some calloc sizes and wrong types

This commit is contained in:
emersion 2017-09-28 23:26:31 +02:00
parent c92199a953
commit b7927078e9
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 159 additions and 140 deletions

View file

@ -320,10 +320,11 @@ static void handle_output_frame(struct output_state *output,
}
}
}
struct wlr_x11_window *x11_window;
wl_list_for_each(x11_window, &sample->xwayland->displayable_windows, link) {
struct wlr_xwayland_surface *xwayland_surface;
wl_list_for_each(xwayland_surface, &sample->xwayland->displayable_surfaces,
link) {
output_frame_handle_surface(sample, wlr_output, ts,
x11_window->surface->resource, 200, 200);
xwayland_surface->surface->resource, 200, 200);
}
wlr_renderer_end(sample->renderer);