| Index: components/exo/wayland/server.cc
|
| diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
|
| index ec5631e44ca1e39f9dea7df6368b68d502d00851..cbb1650783f76ff58bfb28f51306c003981ff3fe 100644
|
| --- a/components/exo/wayland/server.cc
|
| +++ b/components/exo/wayland/server.cc
|
| @@ -30,6 +30,7 @@
|
| #include "ash/common/display/display_info.h"
|
| #include "ash/common/shell_observer.h"
|
| #include "ash/common/shell_window_ids.h"
|
| +#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
|
| #include "ash/common/wm_shell.h"
|
| #include "ash/display/display_manager.h"
|
| #include "ash/shell.h"
|
| @@ -1586,6 +1587,13 @@ class WaylandRemoteShell : public ash::ShellObserver,
|
| ash::Shell* shell = ash::Shell::GetInstance();
|
| shell->activation_client()->AddObserver(this);
|
| display::Screen::GetScreen()->AddObserver(this);
|
| +
|
| + layout_mode_ = ash::WmShell::Get()
|
| + ->maximize_mode_controller()
|
| + ->IsMaximizeModeWindowManagerEnabled()
|
| + ? ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET
|
| + : ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED;
|
| +
|
| SendPrimaryDisplayMetrics();
|
| SendActivated(shell->activation_client()->GetActiveWindow(), nullptr);
|
| }
|
|
|