diff options
author | emersion <contact@emersion.fr> | 2017-09-28 23:26:31 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-09-28 23:26:31 +0200 |
commit | b7927078e9b2dec995eaec8240a87b683349aefb (patch) | |
tree | 2d25f3015af3301949a2087520664c91538843e5 /examples | |
parent | c92199a953a44b5a11b102e76d2b9e106a47a7d4 (diff) |
x11 -> xwayland, window -> surface, fix some calloc sizes and wrong types
Diffstat (limited to 'examples')
-rw-r--r-- | examples/compositor.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/compositor.c b/examples/compositor.c index 7d6efdb6..b1b55190 100644 --- a/examples/compositor.c +++ b/examples/compositor.c @@ -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); |