Closed Shuraken007 closed 1 year ago
Append follow settings to window-switcher.ini
to enable log
[log]
level = debug
path = window-switcher.log
The restart window-swither.exe, try again, submit window-switcher.log
to this issue. please.
Hi there again. Probably it's important - I have 2 monitors. Tested it one more time. alt+` - works only with visible windows. Case I fold with minimize one of them (alt+space+n) - your app don't see it.
Here is log for switching between same app - explorer. window-switcher_same_app_switch.log
alt+tab not works , have default windows 11 switcher
Here is fresh log for alt+tab attempt window-switcher_diverse_app.log
If you help me to setup environment to build app, e.g. fast way to install cargo / required libs e.t.c. What to run for building app. I'll try to debug code.
git clone https://github.com/sigoden/window-switcher
cd window-switcher
cargo run
Well it was a nice journey. I debugged and founded some things.
I added this code to debug required processes and got all your options
let is_visible = is_visible_window(hwnd);
let is_special = is_special_window(hwnd);
let is_small = is_small_window(hwnd);
let is_cloaked = is_cloaked_window(hwnd);
let is_popup = is_popup_window(hwnd);
let is_iconic = is_iconic_window(hwnd);
let is_topmost = is_topmost_window(hwnd);
let pid = get_window_pid(hwnd);
let module_path = get_module_path(pid);
debug!("visible: {:?}, special: {:?}, small: {:?}, cloaked: {:?}, popup: {:?}, iconic: {:?}, topmost: {:?}, pid: {:?}, hwnd: {:?}, p: {:?}",
if is_visible_window(hwnd) {'+'} else {'-'},
if is_special {'+'} else {'-'},
if is_small {'+'} else {'-'},
if is_cloaked {'+'} else {'-'},
if is_popup {'+'} else {'-'},
if is_iconic {'+'} else {'-'},
if is_topmost {'+'} else {'-'},
pid,
hwnd,
Path::new(& module_path).file_name().unwrap().to_str().unwrap(),
);
Here is side by side difference at state, when it's possible to switch and when not. report_iconic.log
This process is related to Universal Windows Platform Applications (also known as Store Applications - a new type of application that comes with Windows 10). Although most of the apps that come with Windows 10 (such as Mail, Calculator, OneNote, Movies & TV, Photos and Groove Music) are UWP apps, these are available from the Windows Store. If this process is forcibly ended, all open UWP apps will be closed.
So, all apps, based on this FrameHost - are same for you. As example basic app calculator and mine app for music. You can try it with 2 apps - calculator and 'Movies & TV'
App looks like this and got default exe icon
I made same debug output for ApplicationFrameHost, containing music app, and processes, containing app name. report_music.log
Looks, like child processes must be checked.
Thanks for your contribution.
I apologize for replying so late.
The point 2 is tricky. I can't find a way to restore the minimized uwp window.
Good update. Btw, what is sense of iconic condition? I removed it from that filter, and all works.
Iconic is no longer needed.
All done.
Hello there. Trying this app, but nothing works. It runned without errors, I see it at system tray, but alt+tab get default system behavior. alt+` not works
Windows specifications: