Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

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

Open zhj9709 opened this issue 2 years ago • 15 comments

Checks

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

  • [X] 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 avatar Sep 20 '23 14:09 zhj9709

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

taooceros avatar Sep 21 '23 04:09 taooceros

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

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

1208nn avatar Oct 01 '23 09:10 1208nn

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

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

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

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

zhj9709 avatar Oct 01 '23 11:10 zhj9709

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

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

1208nn avatar Oct 01 '23 11:10 1208nn

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

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

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

zhj9709 avatar Oct 01 '23 12:10 zhj9709

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

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

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

taooceros avatar Oct 03 '23 16:10 taooceros

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

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

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

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

zhj9709 avatar Oct 04 '23 12:10 zhj9709

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

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

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

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

1208nn avatar Oct 04 '23 13:10 1208nn

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[bot] avatar Nov 19 '23 01:11 github-actions[bot]

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 avatar May 17 '24 09:05 deefrawley

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

zhj9709 avatar May 17 '24 14:05 zhj9709

Feel free to reopen.

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

Is it possible to post a screen record?

VictoriousRaptor avatar May 20 '24 14:05 VictoriousRaptor

Feel free to reopen.

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

Is it possible to post a screen record?

Cannot be reproduced 100%.

zhj9709 avatar May 20 '24 14:05 zhj9709

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.

zhj9709 avatar May 26 '24 16:05 zhj9709

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

taooceros avatar May 26 '24 16:05 taooceros

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

ZGGSONG avatar Dec 10 '24 09:12 ZGGSONG

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] avatar Feb 14 '25 01:02 github-actions[bot]