| Index: components/exo/wayland/server.cc
|
| diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
|
| index af6732c0b8b2f3e164ff5715c203495d02cf0d17..ac203a970e2da78b7dd74b8ef4067a32cd9252ac 100644
|
| --- a/components/exo/wayland/server.cc
|
| +++ b/components/exo/wayland/server.cc
|
| @@ -31,6 +31,7 @@
|
| #include <utility>
|
|
|
| #include "ash/public/cpp/shell_window_ids.h"
|
| +#include "ash/public/interfaces/window_pin_type.mojom.h"
|
| #include "ash/shell.h"
|
| #include "base/bind.h"
|
| #include "base/cancelable_callback.h"
|
| @@ -1951,11 +1952,14 @@ void remote_surface_unfullscreen(wl_client* client, wl_resource* resource) {
|
| void remote_surface_pin(wl_client* client,
|
| wl_resource* resource,
|
| int32_t trusted) {
|
| - GetUserDataAs<ShellSurface>(resource)->SetPinned(true, trusted);
|
| + GetUserDataAs<ShellSurface>(resource)->SetPinned(
|
| + trusted ? ash::mojom::WindowPinType::TRUSTED_PINNED
|
| + : ash::mojom::WindowPinType::PINNED);
|
| }
|
|
|
| void remote_surface_unpin(wl_client* client, wl_resource* resource) {
|
| - GetUserDataAs<ShellSurface>(resource)->SetPinned(false, /* trusted */ false);
|
| + GetUserDataAs<ShellSurface>(resource)->SetPinned(
|
| + ash::mojom::WindowPinType::NONE);
|
| }
|
|
|
| void remote_surface_set_system_modal(wl_client* client, wl_resource* resource) {
|
|
|