From 593209f232c91bae97e10ec21e301f0648a5f8c3 Mon Sep 17 00:00:00 2001 From: Yousef Abu-Salah <42948521+ykabusalah@users.noreply.github.com> Date: Wed, 4 May 2022 07:26:03 +0300 Subject: [PATCH] fix issue #79 (#94) --- apps/desktop/src-tauri/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs index 27ed97faf..5ab06bb93 100644 --- a/apps/desktop/src-tauri/src/main.rs +++ b/apps/desktop/src-tauri/src/main.rs @@ -1,4 +1,5 @@ use std::time::{Duration, Instant}; +use std::env::consts; use sdcore::{ClientCommand, ClientQuery, Core, CoreController, CoreEvent, CoreResponse}; use tauri::api::path; @@ -58,10 +59,17 @@ async fn main() { app.windows().iter().for_each(|(_, window)| { window_shadows::set_shadow(&window, true).unwrap_or(()); + if consts::OS == "windows" { + window.set_decorations(true); + println!("Hello World!"); + } + window.start_dragging().unwrap_or(()); }); } + + // core event transport tokio::spawn(async move { let mut last = Instant::now();