mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 04:01:27 +03:00
Fix wayland input after Lock and Wake
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -118,6 +118,13 @@ pub enum MouseButton {
|
||||
/// Representing an interface and a set of mouse functions every
|
||||
/// operating system implementation _should_ implement.
|
||||
pub trait MouseControllable {
|
||||
// https://stackoverflow.com/a/33687996
|
||||
/// Offer the ability to confer concrete type.
|
||||
fn as_any(&self) -> &dyn std::any::Any;
|
||||
|
||||
/// Offer the ability to confer concrete type.
|
||||
fn as_mut_any(&mut self) -> &mut dyn std::any::Any;
|
||||
|
||||
/// Lets the mouse cursor move to the specified x and y coordinates.
|
||||
///
|
||||
/// The topleft corner of your monitor screen is x=0 y=0. Move
|
||||
@@ -425,6 +432,13 @@ pub enum Key {
|
||||
/// Representing an interface and a set of keyboard functions every
|
||||
/// operating system implementation _should_ implement.
|
||||
pub trait KeyboardControllable {
|
||||
// https://stackoverflow.com/a/33687996
|
||||
/// Offer the ability to confer concrete type.
|
||||
fn as_any(&self) -> &dyn std::any::Any;
|
||||
|
||||
/// Offer the ability to confer concrete type.
|
||||
fn as_mut_any(&mut self) -> &mut dyn std::any::Any;
|
||||
|
||||
/// Types the string parsed with DSL.
|
||||
///
|
||||
/// Typing {+SHIFT}hello{-SHIFT} becomes HELLO.
|
||||
|
||||
Reference in New Issue
Block a user