Skip to content

Commit

Permalink
Fix windows moar
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 12, 2023
1 parent 8451768 commit 42b1b07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,20 @@ fn main() {
);

let app = tauri::Builder::default()
// TODO: this should work on windows
.plugin(tauri_plugin_window_state::Builder::default().build())
.plugin(tauri_plugin_websocket::init())
.manage(Clickthrough(AtomicBool::new(false)))
.setup(|app| {
let window = app.get_window(MAIN_WINDOW_NAME).unwrap();

// the window should always be on top
window.set_always_on_top(true);

// setting this seems to fix windows somehow
// NOTE: this might be a bug?
window.set_decorations(false);

// add mac things
#[cfg(target_os = "macos")]
apply_macos_specifics(app, &window);
Expand Down

0 comments on commit 42b1b07

Please sign in to comment.