Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BUG: Win11上使用alt+tab时遇到的一些问题 #2356

Open
2 tasks done
zhj9709 opened this issue Sep 20, 2023 · 17 comments · May be fixed by #3241
Open
2 tasks done

BUG: Win11上使用alt+tab时遇到的一些问题 #2356

zhj9709 opened this issue Sep 20, 2023 · 17 comments · May be fixed by #3241
Labels
bug Something isn't working

Comments

@zhj9709
Copy link

zhj9709 commented Sep 20, 2023

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

使用alt+space激活Flow Launcher,再次让Flow Launcher隐藏,这时候使用alt+tab查看任务发现以下的问题:
正常情况:
image
image
Flow Launcher隐藏后使用alt+tab:
image
有时候alt+tab可以明显的看到Flow Launcher退出的过程。

目前使用uTools、Listary、Quicker等软件显示再隐藏后不会有这样的问题,Flow Launcher、Fluent Search、Wox会有这样的问题。

To Reproduce

  1. alt+space激活Flow Launcher
  2. 让Flow Launcher隐藏
  3. alt+tab查看任务视图

Screenshots

No response

Flow Launcher Version

1.16.1

Windows Build Number

Windows 11 22631.2338、22621.1992

Error Log

Replace this line with the important log contents.
@zhj9709 zhj9709 added the bug Something isn't working label Sep 20, 2023
@taooceros
Copy link
Member

感觉是因为flow在失去焦点之后隐藏导致……

@1208nn
Copy link

1208nn commented Oct 1, 2023

如果是失去焦点之后隐藏导致,要测试 cmd 运行timeout /nobreak /t 5 && exit是否有选中

可以看看PowerToys Runs是否有问题,若有,则大概是Wox的遗留问题

@zhj9709
Copy link
Author

zhj9709 commented Oct 1, 2023

如果是失去焦点之后隐藏导致,要测试 cmd 运行timeout /nobreak /t 5 && exit是否有选中

运行这个命令后跟之前没啥区别

可以看看PowerToys Runs是否有问题,若有,则估计是Wox的遗留问题

PowerToys Run没有这样的问题。Flow Launcher跟Wox在Windows10上都没有我反馈的问题,但在Win11上跟Wox是一样的,不知道算不算Wox遗留问题。

@1208nn
Copy link

1208nn commented Oct 1, 2023

运行这个命令后跟之前没啥区别

我的意思是:cmd中运行这个命令会在5s后关闭窗口,在窗口关闭时(前)按下alt+tab并保持,以测试是否由于窗口关闭或焦点转移而导致没有在alt+tab菜单中选中窗口

@zhj9709
Copy link
Author

zhj9709 commented Oct 1, 2023

运行这个命令后跟之前没啥区别

我的意思是:cmd中运行这个命令会在5s后关闭窗口,在窗口关闭时(前)按下alt+tab并保持,以测试是否由于窗口关闭或焦点转移而导致没有在alt+tab菜单中选中窗口

cmd窗口关闭后还是有选中的窗口。还有Flow Launcher窗口隐藏前alt+tab可以看到Flow Launcher的窗口,但PowerToys Run不会。

@taooceros
Copy link
Member

taooceros commented Oct 3, 2023

我看了powertoy的代码,我们是一样的

https://github.com/microsoft/PowerToys/blob/7f8e9072c9be0afccadfe74b9225e9fd9691ced0/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs#L394-L401

可能是因为我们有一些小延迟。。。但是wox也有这个问题的话就比较奇怪

@zhj9709
Copy link
Author

zhj9709 commented Oct 4, 2023

我看了powertoy的代码,我们是一样的

https://github.com/microsoft/PowerToys/blob/7f8e9072c9be0afccadfe74b9225e9fd9691ced0/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs#L394-L401

可能是因为我们有一些小延迟。。。但是wox也有这个问题的话就比较奇怪

在多台win11设备上测试都是一样的,可以100%复现,但win10上Flow Launcher和Wox都不会有这样的问题。

@1208nn
Copy link

1208nn commented Oct 4, 2023

对于MainWindow.xaml.cs wox和mspt基本一样,flow有多的判断,大致用于设置界面预览时不隐藏

大概是xaml的问题,乍一看,flow的xaml翻了4倍,可以在mspt的commit里找

对比了一下,可能与mspt里多的这两句有关IsVisibleChanged="OnVisibilityChanged"Closed="OnClosed",这两句wox和flow都没有,但是不大清楚

mspt里还有这一句,但flow与wox里有一句类似的,估计没有关系SourceInitialized="OnSourceInitialized"

Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 19, 2023
@jjw24 jjw24 removed the Stale label Nov 20, 2023
@deefrawley
Copy link
Member

I'm not sure what has been discussed here, but as the last update was five months ago am closing. If this is still a genuine issue we can reopen.

@zhj9709
Copy link
Author

zhj9709 commented May 17, 2024

I'm not sure what has been discussed here, but as the last update was five months ago am closing. If this is still a genuine issue we can reopen.

The current Flow Launcher version I use is v1.18.0.

Activating Flow Launcher and then using Alt+Tab, no app is selected.
image

When I am not using Flow Lanucher, pressing alt+tab will by default have an app selected (usually the previous app), and releasing alt+tab will switch to the selected app, so I can use alt+tab to quickly switch to the previous app
image

@VictoriousRaptor
Copy link
Contributor

Feel free to reopen.

有时候alt+tab可以明显的看到Flow Launcher退出的过程。

Is it possible to post a screen record?

@zhj9709
Copy link
Author

zhj9709 commented May 20, 2024

Feel free to reopen.

有时候alt+tab可以明显的看到Flow Launcher退出的过程。

Is it possible to post a screen record?

Cannot be reproduced 100%.

@zhj9709
Copy link
Author

zhj9709 commented May 26, 2024

I'm not sure what has been discussed here, but as the last update was five months ago am closing. If this is still a genuine issue we can reopen.

@deefrawley Is it possible to reopen this issue? This is still a genuine issue.

@taooceros
Copy link
Member

@taooceros taooceros reopened this May 26, 2024
@onesounds onesounds moved this from Todo to Investigation / Research in Work In Progress May 27, 2024
@ZGGSONG
Copy link

ZGGSONG commented Dec 10, 2024

I think we can adept something like this. https://stackoverflow.com/questions/357076/best-way-to-hide-a-window-from-the-alt-tab-program-switcher

Yes, my program is also found to appear in the Alt-Tab page, in fact, similar to this tool, you do not need to appear in the Alt-Tab page so as to avoid affecting the other program window switching, I refer to stackflow's answer has been achieved! a tool class

This comment has been minimized.

@github-actions github-actions bot added the Stale label Feb 14, 2025
ZGGSONG added a commit to ZGGSONG/Flow.Launcher that referenced this issue Feb 14, 2025
@ZGGSONG ZGGSONG linked a pull request Feb 14, 2025 that will close this issue
@Jack251970 Jack251970 linked a pull request Feb 14, 2025 that will close this issue
@jjw24 jjw24 removed the Stale label Feb 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: Investigation / Research
Development

Successfully merging a pull request may close this issue.

7 participants