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

window list is collapsed on secondary monitor #3744

Open
lubomirfiala opened this issue Oct 21, 2024 · 18 comments
Open

window list is collapsed on secondary monitor #3744

lubomirfiala opened this issue Oct 21, 2024 · 18 comments
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue

Comments

@lubomirfiala
Copy link

lubomirfiala commented Oct 21, 2024

Window list is collapsed on secondary monitor and doesn't show any content. See photo.

It happens only on secondary monitor, i tried to tweak some random appearance settings and it happens only in Titles view, only after alt tab was once used on primary monitor. No other settings seems to interfere with this.

Sorry for photo, but i cannot take screenshot when alt tab is active.

IMG_1273

my other preferences looks like this:

SCR-20241021-lhja

SCR-20241021-lhjx

Edit: thank you for this view option, it's much better than tiles or icons :)

@lubomirfiala lubomirfiala added the bug Something isn't working label Oct 21, 2024
@lwouis
Copy link
Owner

lwouis commented Oct 21, 2024

Hi,

Thank you for sharing this issue.

Could you please share the resolutions of your 2 monitors? Maybe a picture of how AltTab looks on the other monitor, as well?

Thank you 🙇

@emanueldima
Copy link

Main display, 1496x967 scaled resolution (MacBook Pro 16-inch, 2021)
Screenshot 2024-10-23 at 15 37 19

Secondary display, 3200x1800 scaled resolution (4K native)
Screenshot 2024-10-23 at 15 37 37

It only happens when using the "Titles" appearance style, afaik.

@lwouis
Copy link
Owner

lwouis commented Oct 23, 2024

I wonder if this could be due to the display of this macbook having a notch? Maybe grabbing the dimensions of such a display creates the issue?

#3751 seems to happen also on the main macbook displays. Debug Profile says that it's a Mac14,2 which seems to be a macbook air with the notch.

@emanueldima
Copy link

I tested some more and I see this reproduces when there is a big difference between the secondary screen resolution and the main screen resolution. E.g. it

  • reproduces at 3200x1800 (secondary) and 1728x1117 (main)
  • does not reproduce at 3200x1800 (secondary) and 2056x1392 (main)
  • reproduces at 2560x1440 (secondary) and 1496x967 (main)
  • does not reproduce at 2560x1440 (secondary) and 1728x1117 (main)

It also only reproduces on the laptop screen, not on the secondary display, even when I set a high resolution on main and a low resolution on secondary.

@zawadzkipiter
Copy link

same here, also only bug appears on laptop screen - when secondary is big 4k screen.

@lwouis
Copy link
Owner

lwouis commented Oct 24, 2024

@zawadzkipiter is your laptop screen having a notch at the top?

@emanueldima

reproduces at 3200x1800 (secondary) and 1728x1117 (main)

In that situation, do you reproduce the issue if the secondary monitor is not connected? I mean, is this issue about the 2 monitors, or does it happen already with 1 monitor, with specific resolutions?

Thank you 🙇

@emanueldima
Copy link

emanueldima commented Oct 24, 2024

No, the secondary monitor must be connected for the bug to show up. I also tried changing the display arrangements (i.e. which monitor is to the left of the other one or one on top of another) but this does not seem to matter.

Another interesting thing is that if I change the resolution of the primary display the titles are rendered correctly until I switch to the other display. Once the titles are rendered on the secondary display they will not be rendered correctly on the primary one anymore (but this is what @lubomirfiala already said).

@zawadzkipiter
Copy link

zawadzkipiter commented Oct 24, 2024 via email

@lubomirfiala
Copy link
Author

lubomirfiala commented Oct 25, 2024

I tried all 4 common setups for me and i can reproduce this bug on all of them:

external 5120x1440 primary & mbp 1512x982 (scaled) secondary
external 5120x1440 primary & mbp 1800x1169 (native) secondary
mbp 1512x982 (scaled) primary & external 5120x1440 secondary
mbp 1800x1169 (native) primary & external 5120x1440 secondary

Then i tried to change resolution on my external monitor to some funky values. First i thought it was related to screen ratio, but now it seems it only happens above 3400px of width of screen. Problem is, that is not consistent with @emanueldima :

can reproduce it:

external 3440x1440 & mbp 1800x1169
external 3440x1080 & mbp 1800x1169
external 3840x2160 & mbp 1800x1169

cannot reproduce it:

external 1920x1080 & mbp 1800x1169
external 2560x1440 & mbp 1800x1169
external 1280x1024 & mbp 1800x1169
external 1920x540 & mbp 1800x1169

Yes my mbp has a notch and it only happens on mbp screen only.

@zawadzkipiter
Copy link

@zawadzkipiter is your laptop screen having a notch at the top?

@emanueldima

reproduces at 3200x1800 (secondary) and 1728x1117 (main)

In that situation, do you reproduce the issue if the secondary monitor is not connected? I mean, is this issue about the 2 monitors, or does it happen already with 1 monitor, with specific resolutions?

Thank you 🙇

yes, notch

@emanueldima
Copy link

I notice some similar weird behaviour with other programs too (e.g. raycast when using the windows management features). This may well be a macos bug, where the screen dimension is incorrectly reported in some conditions. The question is if there is a simple workaround for the problem. For instance the alt-tab works well until it renders on the secondary monitor, so it may work to cache the first screen resolution and to use this value when the macos reported resolution is too small.

@lwouis
Copy link
Owner

lwouis commented Oct 29, 2024

Hi,

Here is a local build with special logs. Could you please run it from Terminal.app, and share here the logs you get?

You should see logs when you hit the AltTab shortcut. It should print the screens and their resolution.

This should helps us settle if its a macOS bug or an AltTab bug.

Thank you 🙇

@emanueldima
Copy link

Unfortunately the newest macos version does not allow me to run it: Apple could not verify “AltTab.app” is free of malware that may harm your Mac or compromise your privacy. Is there a way to compile it from source with the logs? It will run if I compile it on the same machine.

@lwouis
Copy link
Owner

lwouis commented Oct 30, 2024

@emanueldima
Copy link

Apologies for the delay. You're right of course about starting the application. I ran it like this:

  • start and test on the secondary monitor: window displays correctly
  • switch mouse to primary (laptop) monitor, show the switcher: window displays correctly
  • switch mouse on secondary monitor, show the switcher: window displays correctly
  • switch mouse on the primary (laptop) monitor: window displays incorrectly

alttab-issue.log

@lwouis
Copy link
Owner

lwouis commented Nov 4, 2024

Thank you @emanueldima

From the logs, I see 2 things:

  • Screen resolutions seem to have reasonable values. No (0, 0) for instance
  • Screen resolutions don't change over time

This seems to indicate a problem in AltTab layout logic, versus an issue with macOS support of the screen, or some notch issue.

You mentionned previously:

reproduces at 3200x1800 (secondary) and 1728x1117 (main)
does not reproduce at 3200x1800 (secondary) and 2056x1392 (main)
reproduces at 2560x1440 (secondary) and 1496x967 (main)
does not reproduce at 2560x1440 (secondary) and 1728x1117 (main)

In the logs, I see the following screens:

  • 6030EF86-73F3-79BA-0857-D6964E3302DB (0.0, 0.0, 3008.0, 1692.0)
  • 37D8832A-2D66-02CA-B9F7-8F30A301B230 (3008.0, 412.0, 1440.0, 900.0)

These resolutions of 3008x1692 and 1440x900 were not mentionned before. How come they differ from previous resolutions discussed?

Thank you 🙇

@emanueldima
Copy link

@lwouis I tested the AltTab with logs on a macbook air M1, which supports different resolutions for the secondary screen (I was not aware of that). The previous tests were made, I think I mentioned, on a Macbook Pro m1 16"

@lwouis
Copy link
Owner

lwouis commented Nov 6, 2024

#3816 Maybe related?

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

4 participants