WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bdb9e51

Browse files
committed
Fix window exclusion and placement handling
1 parent 130fe16 commit bdb9e51

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn should_skip_window(window: &Window, exclusions: &[WindowExclusion]) -> bool {
142142

143143
exclusions.iter().any(|entry| {
144144
entry.matches(
145-
bundle_identifier.as_deref(),
145+
bundle_identifier,
146146
owner_name.as_deref(),
147147
window_title.as_deref(),
148148
)
@@ -260,8 +260,10 @@ pub async fn focus_window(window_id: WindowId) -> Result<(), String> {
260260
// Only restore if the window is actually minimized
261261
if IsIconic(hwnd).as_bool() {
262262
// Get current window placement to preserve size/position
263-
let mut wp = WINDOWPLACEMENT::default();
264-
wp.length = std::mem::size_of::<WINDOWPLACEMENT>() as u32;
263+
let mut wp = WINDOWPLACEMENT {
264+
length: std::mem::size_of::<WINDOWPLACEMENT>() as u32,
265+
..Default::default()
266+
};
265267

266268
if GetWindowPlacement(hwnd, &mut wp).is_ok() {
267269
// Restore using the previous placement to avoid resizing

0 commit comments

Comments
 (0)