From 28cc1730e827b919ecef9276af32655ec5e69043 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Fri, 12 Jul 2019 14:08:29 +0200 Subject: xdg_shell(_v6): Take maximize/fullscreen state into account on view init set_maximized and set_fullscreen calls can come before the view is constructed and before its signal handlers are registered. --- rootston/xdg_shell_v6.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rootston/xdg_shell_v6.c') diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index b80ea38d..917ca3a0 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -462,6 +462,10 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { view_init(&roots_surface->view, &view_impl, ROOTS_XDG_SHELL_V6_VIEW, desktop); roots_surface->xdg_surface_v6 = surface; + view_maximize(&roots_surface->view, surface->toplevel->client_pending.maximized); + view_set_fullscreen(&roots_surface->view, surface->toplevel->client_pending.fullscreen, + surface->toplevel->client_pending.fullscreen_output); + roots_surface->surface_commit.notify = handle_surface_commit; wl_signal_add(&surface->surface->events.commit, &roots_surface->surface_commit); -- cgit v1.2.3