From 578a03965b421d2c5a0d48fe3a01c2803e8998d8 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 4 Jul 2016 17:24:36 +0200 Subject: [PATCH] Request a maximized window rather than a fullscreen one --- src/anbox/ubuntu/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/anbox/ubuntu/window.cpp b/src/anbox/ubuntu/window.cpp index 7cb879a1..563be9be 100644 --- a/src/anbox/ubuntu/window.cpp +++ b/src/anbox/ubuntu/window.cpp @@ -106,8 +106,9 @@ Window::Window(const std::shared_ptr &display, parameters.height, parameters.output_id); - // Force fullscreen for now until we have proper resizing support - mir_surface_set_state(surface_, mir_surface_state_fullscreen); + // We have to tell mir that we want a maximized window otherwise we + // get a full screen one. + mir_surface_set_state(surface_, mir_surface_state_maximized); auto surface_buffer_stream = mir_surface_get_buffer_stream(surface_); native_window_ = reinterpret_cast( -- GitLab