Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Preview option can create screen flickering when switching windows #2432

Closed
ChihGodlee opened this issue Mar 24, 2023 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@ChihGodlee
Copy link

Describe the bug

Flickering screen when switching windows

Screenshots / video

CleanShot.2023-03-23.at.21.36.49.mp4

Steps to reproduce the bug

  1. CMD + TAB

Your environment

  • AltTab version: 6.56.0
  • macOS version: 13.2.1
  • Other relevant info: e.g. using external keyboard, multiple monitors, etc

CleanShot 2023-03-24 at 10 53 43

Preview selected window ticked.

@ChihGodlee ChihGodlee added the bug Something isn't working label Mar 24, 2023
@lwouis lwouis changed the title Flickering screen when switching windows Preview option can create screen flickering when switching windows Mar 24, 2023
@lwouis
Copy link
Owner

lwouis commented Mar 24, 2023

I downloaded the video and looked frame-by-frame to understand. This happens because the preview, which is an image of the target window, is first removed, then the real window is focused.

If we want to avoid this, I think we would need to first bring up the real window, and then remove the image that should now be behind it.

It's probably possible, but seems complex to me, because when we ask the OS to focus the real window, it may take a few seconds to do so, so we would need to keep the preview window for that long. But what if the user re-opens AltTab and does other things in the meanwhile? And the window may block user interaction on screen as well.

@decodism do you think there is a way to reduce the visual flickering here? I just checked how it goes in HyperSwitch, and somehow they made it really smooth every time :o

@lwouis lwouis added enhancement New feature or request and removed bug Something isn't working labels Mar 24, 2023
@lwouis lwouis closed this as completed in 15b4184 Jun 23, 2023
lwouis pushed a commit that referenced this issue Jun 23, 2023
# [6.60.0](v6.59.0...v6.60.0) (2023-06-23)

### Bug Fixes

* prevent flickering when switching to a previewed window ([b69f5f4](b69f5f4)), closes [#2432](#2432)

### Features

* improve support for color-slurp windows ([8605b23](8605b23))
* user can change window order in preferences (closes [#515](#515)) ([a67d123](a67d123))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants