Skip to content

Commit fc52730

Browse files
fix windows
1 parent 66e21e4 commit fc52730

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/desktop/src-tauri/src/target_select_overlay.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ pub async fn focus_window(window_id: WindowId) -> Result<(), String> {
193193
let mut wp = WINDOWPLACEMENT::default();
194194
wp.length = std::mem::size_of::<WINDOWPLACEMENT>() as u32;
195195

196-
if GetWindowPlacement(hwnd, &mut wp).as_bool() {
196+
if GetWindowPlacement(hwnd, &mut wp).is_ok() {
197197
// Restore using the previous placement to avoid resizing
198-
wp.showCmd = SW_RESTORE;
198+
wp.showCmd = SW_RESTORE.0 as u32;
199199
SetWindowPlacement(hwnd, &wp);
200200
} else {
201201
// Fallback to simple restore if placement fails

0 commit comments

Comments
 (0)