Skip to content

Commit 42be95d

Browse files
committed
icon
1 parent 5ac9f42 commit 42be95d

10 files changed

Lines changed: 60 additions & 2 deletions

File tree

2.36 KB
Loading
5.08 KB
Loading
779 Bytes
Loading
24.2 KB
Loading
7.46 KB
Loading
24.2 KB
Binary file not shown.
82.8 KB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Loading

screenkey-app/src-tauri/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ fn main() {
150150
.setup(|app| {
151151
let app_handle = app.handle().clone();
152152

153+
// Ensure window is always on top
154+
if let Some(window) = app.get_webview_window("main") {
155+
let _ = window.set_always_on_top(true);
156+
// Don't focus the window initially
157+
let _ = window.set_focus();
158+
}
159+
153160
std::thread::spawn(move || {
154161
println!("Starting keyboard listener...");
155162
let mut devices = find_keyboard_devices();

screenkey-app/src-tauri/tauri.conf.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"app": {
3030
"windows": [
3131
{
32+
"label": "main",
3233
"title": "ScreenKey",
3334
"width": 350,
3435
"height": 500,
@@ -39,11 +40,19 @@
3940
"visible": true,
4041
"center": false,
4142
"x": 50,
42-
"y": 50
43+
"y": 50,
44+
"focus": false,
45+
"resizable": true,
46+
"maximizable": false,
47+
"minimizable": true,
48+
"closable": true,
49+
"fullscreen": false,
50+
"visibleOnAllWorkspaces": true
4351
}
4452
],
4553
"security": {
4654
"csp": null
47-
}
55+
},
56+
"macOSPrivateApi": true
4857
}
4958
}

0 commit comments

Comments
 (0)