local_input_monitor_x11_common.cc 604 B

1234567891011121314151617
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "remoting/host/input_monitor/local_input_monitor_x11_common.h"
  5. namespace remoting {
  6. x11::Input::XIEventMask CommonXIEventMaskForRootWindow() {
  7. x11::Input::XIEventMask mask{};
  8. ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawKeyPress);
  9. ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawKeyRelease);
  10. ui::SetXinputMask(&mask, x11::Input::RawDeviceEvent::RawMotion);
  11. return mask;
  12. }
  13. } // namespace remoting