wayland backend: fix xdg-shell for gnome

Calling wl_surface_commit after setting up the xdg_toplevel is
apparently good enough for them.

Still missing something for weston.
This commit is contained in:
Dominique Martinet 2017-08-17 00:52:01 +02:00
parent fb05923eaa
commit 3377e5e4f2

View file

@ -255,6 +255,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) {
&xdg_surface_listener, output); &xdg_surface_listener, output);
zxdg_toplevel_v6_add_listener(output->xdg_toplevel, zxdg_toplevel_v6_add_listener(output->xdg_toplevel,
&xdg_toplevel_listener, output); &xdg_toplevel_listener, output);
wl_surface_commit(output->surface);
output->egl_window = wl_egl_window_create(output->surface, output->egl_window = wl_egl_window_create(output->surface,
wlr_output->width, wlr_output->height); wlr_output->width, wlr_output->height);