alt-tab-macos icon indicating copy to clipboard operation
alt-tab-macos copied to clipboard

window list is collapsed on secondary monitor

Open lubomirfiala opened this issue 1 year ago β€’ 1 comments

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 avatar Oct 21 '24 10:10 lubomirfiala

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 πŸ™‡

lwouis avatar Oct 21 '24 12:10 lwouis

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.

emanueldima avatar Oct 23 '24 13:10 emanueldima

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?

https://github.com/lwouis/alt-tab-macos/issues/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.

lwouis avatar Oct 23 '24 19:10 lwouis

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.

emanueldima avatar Oct 24 '24 07:10 emanueldima

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

zawadzkipiter avatar Oct 24 '24 10:10 zawadzkipiter

@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 πŸ™‡

lwouis avatar Oct 24 '24 16:10 lwouis

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).

emanueldima avatar Oct 24 '24 16:10 emanueldima

Yes, notch. Mbp 14 2024

W dniu czw., 24.10.2024 o 18:12 lwouis @.***> napisaΕ‚(a):

@zawadzkipiter https://github.com/zawadzkipiter is your laptop screen having a notch at the top?

@emanueldima https://github.com/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 πŸ™‡

β€” Reply to this email directly, view it on GitHub https://github.com/lwouis/alt-tab-macos/issues/3744#issuecomment-2435708379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCXIUAYJZUAP74N4S4RU3LZ5EL7DAVCNFSM6AAAAABQJ27A3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZVG4YDQMZXHE . You are receiving this because you were mentioned.Message ID: @.***>

zawadzkipiter avatar Oct 24 '24 17:10 zawadzkipiter

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.

lubomirfiala avatar Oct 25 '24 05:10 lubomirfiala

@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

zawadzkipiter avatar Oct 25 '24 11:10 zawadzkipiter

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.

emanueldima avatar Oct 29 '24 11:10 emanueldima

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 πŸ™‡

lwouis avatar Oct 29 '24 17:10 lwouis

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.

emanueldima avatar Oct 30 '24 12:10 emanueldima

@emanueldima you can open the app by following these steps πŸ‘

lwouis avatar Oct 30 '24 17:10 lwouis

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

emanueldima avatar Nov 04 '24 10:11 emanueldima

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 πŸ™‡

lwouis avatar Nov 04 '24 15:11 lwouis

@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"

emanueldima avatar Nov 06 '24 08:11 emanueldima

https://github.com/lwouis/alt-tab-macos/issues/3816 Maybe related?

lwouis avatar Nov 06 '24 20:11 lwouis

confirming - same behavior for MacBook Pro M2 with connected external display with resolution 2560x1440

the interesting thing - as soon as I change some setting in "Appearance" tab it starts working as expected for first time

ildarworld avatar Nov 13 '24 08:11 ildarworld

I created #3945 before seeing this issue; here are my logs (slightly sanitized) in case they're helpful. I split them into four blocks, the second and third are when AltTab displayed normally, and the last one is when it didn't.

https://gist.github.com/BinaryMuse/ba9d2e4002895960124c00b67d51835f

BinaryMuse avatar Dec 05 '24 22:12 BinaryMuse

#3816 Maybe related?

I was having this issue too until the last time I updated AltTab, and I haven't seen it since. Unfortunately I can't remember if I was only seeing it on the external displays or not.

Perhaps also helpful: I only experience this bug after I show AltTab on the large display connected via HDMI; it displays correctly on the iPad (using Sidecar) and the main laptop screen until I do so.

BinaryMuse avatar Dec 10 '24 20:12 BinaryMuse

Can also confirm this bug happening on MacBook Pro M3 with 2 displays connected (MacBook lid closed). displays:

  • 1080 x 1920
  • 3440 x 1440

When i change the widescreen to 2048 x 858 the bug stop occurring.

uiop860 avatar Dec 11 '24 11:12 uiop860

I was finally able to reproduce today after trying all sorts of resolution from this thread. What got me to repro:

  • Laptop screen: 1440x900
  • Dell monitor: 2560x1440

Both screens are on. I see the collapsed list on the laptop screen. It works fine on the Dell monitor.

lwouis avatar Dec 11 '24 17:12 lwouis