You need to sign in or sign up before continuing.
提交 578a0396 编写于 作者: S Simon Fels

Request a maximized window rather than a fullscreen one

上级 b050c1f5
...@@ -106,8 +106,9 @@ Window::Window(const std::shared_ptr<MirDisplayConnection> &display, ...@@ -106,8 +106,9 @@ Window::Window(const std::shared_ptr<MirDisplayConnection> &display,
parameters.height, parameters.height,
parameters.output_id); parameters.output_id);
// Force fullscreen for now until we have proper resizing support // We have to tell mir that we want a maximized window otherwise we
mir_surface_set_state(surface_, mir_surface_state_fullscreen); // get a full screen one.
mir_surface_set_state(surface_, mir_surface_state_maximized);
auto surface_buffer_stream = mir_surface_get_buffer_stream(surface_); auto surface_buffer_stream = mir_surface_get_buffer_stream(surface_);
native_window_ = reinterpret_cast<EGLNativeWindowType>( native_window_ = reinterpret_cast<EGLNativeWindowType>(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册