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

Start Menu Appears Offscreen #908

Closed
skennedy1331 opened this issue Nov 19, 2021 · 19 comments
Closed

Start Menu Appears Offscreen #908

skennedy1331 opened this issue Nov 19, 2021 · 19 comments
Assignees

Comments

@skennedy1331
Copy link

I have 3 monitors, the left monitor is in portrait while the center and right monitors are in landscape.
The center monitor is set as the main monitor and has the only taskbar.
The center's taskbar is set vertically on the left side of the screen and is set to autohide.
The issue I am having is when I press the Windows key on the keyboard the start menu appears off the main screen.
The taskbar pops open correctly but the start menu is displayed at the top of the left monitor and 99% of the menu is missing.
All I see is 1/4 of a windows search bar, 1/4 shutdown button, and my account icon obscuring part of the shutdown button.
See attached screenshot. Now If I triple-tap the Windows key the start menu shows normally. Any thoughts on how to fix it?

Windows 10 21H2, I7-6700K,16GB-2133, GTX 980 Ti, EVO 850. Monitors: L=LG, C=Sam, R=HP; L, C, R = 1080p

Screenshot (2)

@DerGuteWolf
Copy link

DerGuteWolf commented Jan 9, 2022

Hi @skennedy1331 , I have a similar setting and the same problem, although all 3 monitors are in landscape and the only taskbar is in the right of the center monitor, left and middle monitor are 1920x1080, right monitor is 1600x900, all at 100%, all monitors alligned at the top. "news and interests" is disabled.
Do you have a solution already?

@burritosoftware
Copy link

I am having the same issue as well.

@skennedy1331
Copy link
Author

@burritosoftware @DerGuteWolf Sorry to hear we all have the same problem. I have no solution except for moving all taskbars to the bottom of the screen. Hopefully, there can be a bug fix soon.

@collinsmith
Copy link

I have this issue as well.

@ge0rdi
Copy link
Member

ge0rdi commented Nov 30, 2022

Could you, guys, create Open-Shell log using this guide?
It should contain info about screen, taskbar and start menu position/dimensions. Maybe that will shed some light onto the issue.

Do you use some special software for multi-monitor setup?
Or just plain Windows?

@collinsmith
Copy link

@ge0rdi No special software, except maybe fancy zones via win power toys. I've used it for years without issues, the only change recently is hiding the taskbar. I believe open shell is not grabbing the correct layout when opening the start menu from a hidden taskbar. If I open the start menu when the task bar is unhidden, it works fine. This is all via the windows key on my keyboard.

  1. win key to show taskbar and open the bad layout start menu
  2. win key to close the bad layout start menu
  3. since taskbar is still showing, win key again to show the good layout start menu

StartMenuLog.txt

@ge0rdi
Copy link
Member

ge0rdi commented Dec 1, 2022

Thank you for the additional info.

I can see in log that there is something wrong:
Main Rect: 0, 0, 0, 0
This should be rectangle that spans whole screen where start menu is about to show.

Apparently, some issue with detecting what monitor we should display on, or something alike.
I guess I'd need to manage multi-monitor setup to be able to debug it somehow.

For now, maybe you can just disable taskbar hiding? So that it at least works.

@ge0rdi ge0rdi self-assigned this Dec 1, 2022
@skennedy1331
Copy link
Author

@ge0rdi
StartMenuLog.txt
Just like @collinsmith , I just use plain Windows and I have Fancy zones too.
With the initial bad opening visible, if I quickly double-tap the windows key the start menu loads correctly.

@ge0rdi
Copy link
Member

ge0rdi commented Dec 1, 2022

@skennedy1331
Is the log file from case where Open-Shell start menu position was wrong?
Because I see nothing suspicious there.

Though as I wrote, this will require some debugging on multi-monitor setup (I'll try to get to that somehow, but no promises).

@skennedy1331
Copy link
Author

@ge0rdi
StartMenuLog.txt
I erroneously uploaded a log where I double-tapped the Windows key after the menu opened in the wrong position.
This upload is when the menu opened in the wrong position.

@ge0rdi
Copy link
Member

ge0rdi commented Dec 1, 2022

Oki, thanks.
This log is consistent with the one from @collinsmith.
So it will be the same issue with determining what monitor menu should be displayed on.

ge0rdi added a commit to ge0rdi/Open-Shell-Menu that referenced this issue Dec 1, 2022
When taskbar is hidden its window is moved off the screen (except for
few pixels at border). It may happen that the taskbar window actually
spans to another monitor (though still not visible).

MonitorFromWindow API may thus return different monitor handle than the
one visible taskbar is on.

We will use GetTaskbarPosition function that correctly identifies taskbar's
monitor by checking rectangle of visible taskbar.

Fixes Open-Shell#908
@ge0rdi
Copy link
Member

ge0rdi commented Dec 1, 2022

I was able to replicate the issue using two monitors.
Prepared fix that will eventually get to official build.

In the meantime, I'd like to ask you guys to test with this build to see if it's fixed for you as well.

Note that it is development build (and there are more changes included).
It should be safe to use, but better backup your settings before installing (in case if something goes wrong).

@collinsmith
Copy link

@ge0rdi Looks that that did the trick. Thank you!

@ge0rdi
Copy link
Member

ge0rdi commented Dec 2, 2022

@collinsmith
Perfect!

You can keep using the build.
Once the change will get to master, this issue will be closed automatically and there will be new official build available (should be 4.4.181).
Then please install the official one.

@skennedy1331
Copy link
Author

@ge0rdi it worked for me as well, thanks a bunch.

@ge0rdi ge0rdi closed this as completed in 7044592 Dec 6, 2022
@ge0rdi
Copy link
Member

ge0rdi commented Dec 6, 2022

Hi guys.
We have official 4.4.181 build.
Please, install this one and enjoy :)

@collinsmith
Copy link

@ge0rdi just an fyi, it seems that the dev build is ahead of the newer pre-release build?
image

@ge0rdi
Copy link
Member

ge0rdi commented Dec 6, 2022

I think that's because PR build has also version 4.4.181 (PR builds are always one version higher than latest official one).

Just uninstall it and then install official one (uninstall shouldn't remove any user settings, but you back up your setting to be sure).

@ruddnev
Copy link

ruddnev commented Jan 18, 2024

Having the same problem with 21:9 main screen and a 16:9 secondary, running retrobar, main rect is 0, 0 (and menu is offscreen) when i have some window on the secondary screen and no windows and my mouse on the main screen. Only in those conditions. Changing 21:9 screen to 16:9 fixes it, having a window fixes it, having no windows anywhere fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants