lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.84k stars 326 forks source link

window list is collapsed on secondary monitor #3744

Open lubomirfiala opened 4 days ago

lubomirfiala commented 4 days ago

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

lwouis commented 4 days ago

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 commented 2 days ago

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 commented 2 days ago

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.

emanueldima commented 2 days ago

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

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 commented 1 day ago

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

lwouis commented 1 day ago

@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 commented 1 day ago

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 commented 1 day ago

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: @.***>

lubomirfiala commented 1 day ago

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 commented 20 hours ago

@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