fix on linux

This commit is contained in:
rustdesk
2021-05-02 21:19:48 +08:00
parent 547b85adbf
commit 2adc774d8a
5 changed files with 46 additions and 5 deletions

View File

@@ -139,6 +139,7 @@ impl sciter::EventHandler for Handler {
}
sciter::dispatch_script_call! {
fn is_xfce();
fn get_id();
fn get_default_pi();
fn get_option(String);
@@ -279,6 +280,10 @@ impl Handler {
self.lc.read().unwrap().remember
}
fn is_xfce(&self) -> bool {
crate::platform::is_xfce()
}
fn save_size(&mut self, x: i32, y: i32, w: i32, h: i32) {
let size = (x, y, w, h);
let mut config = self.load_config();