aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootston/xdg_shell.c4
-rw-r--r--rootston/xdg_shell_v6.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/rootston/xdg_shell.c b/rootston/xdg_shell.c
index 60222750..7b12ec70 100644
--- a/rootston/xdg_shell.c
+++ b/rootston/xdg_shell.c
@@ -465,6 +465,10 @@ void handle_xdg_shell_surface(struct wl_listener *listener, void *data) {
roots_surface->xdg_surface = surface;
surface->data = roots_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);
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);