Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
7.66k stars 301 forks source link

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

Open zhj9709 opened 11 months ago

zhj9709 commented 11 months ago

Checks

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

```shell Replace this line with the important log contents. ```
taooceros commented 11 months ago

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

1208nn commented 11 months ago

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

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

zhj9709 commented 11 months ago

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

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

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

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

1208nn commented 11 months ago

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

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

zhj9709 commented 11 months ago

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

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

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

taooceros commented 11 months ago

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

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

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

zhj9709 commented 11 months ago

我看了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 commented 11 months ago

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

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

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

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

github-actions[bot] commented 9 months ago

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.

deefrawley commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

Feel free to reopen.

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

Is it possible to post a screen record?

zhj9709 commented 3 months ago

Feel free to reopen.

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

Is it possible to post a screen record?

Cannot be reproduced 100%.

zhj9709 commented 3 months ago

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 commented 3 months ago

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