blob: 82809f4cadb5697b5504cfa8fb226e3f79ed1548 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/input_monitor/local_input_monitor_x11_common.h"
namespace remoting {
x11::Input::XIEventMask CommonXIEventMaskForRootWindow() {
x11::Input::XIEventMask mask{};
ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawKeyPress);
ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawKeyRelease);
ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawMotion);
return mask;
}
} // namespace remoting