Fix simulate in wayland

This commit is contained in:
asur4s
2022-09-02 15:29:25 -04:00
parent 15b8a5592d
commit bec8daafb9
4 changed files with 93 additions and 78 deletions

View File

@@ -1,4 +1,9 @@
use crate::ResultType;
use std::sync::Mutex;
lazy_static::lazy_static! {
pub static ref IS_X11: Mutex<bool> = Mutex::new("x11" == get_display_server());
}
pub fn get_display_server() -> String {
let session = get_value_of_seat0(0);