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

[Vertical Taskbar for Windows 11] When switching virtual desktops the bar disappears (on other monitors) #1300

Open
stx8 opened this issue Dec 4, 2024 · 4 comments
Labels
mod-bug Something isn't working with a mod

Comments

@stx8
Copy link

stx8 commented Dec 4, 2024

Hi there,

When swapping moving between virtual desktops, the taskbar disappears on the secondary/teritiary screens. However, if you enable or disable or change any setting in the mod, it comes back. Logs are attached, I am not 100% sure but believe the below is what comes up when the bar disappears (based on timing of the virtual desktop switch)

10:32:45.696 6996 explorer.exe [WH] [taskbar-vertical] [609:TaskbarWndProcPostProcess]: 000F: 0001015C

Thank you.
taskbar log.txt
capture

@stx8 stx8 added the mod-bug Something isn't working with a mod label Dec 4, 2024
@stx8
Copy link
Author

stx8 commented Dec 4, 2024

Hmm, so by chance, I noticed that the issue was occuring mainly when i had an RDP window full screen on one of screens while switching desktops. If I didn't have the RDP, the issue doesn't occur.

However, it may be a specific issue to my own hardware, if i change the taskbar width from the default 60 (61 or 59 for example), it no longer disappears and is functioning fine.

I'll leave it up to you if this is closable. (edit: accidentally clicked closed).

@stx8 stx8 closed this as completed Dec 4, 2024
@stx8 stx8 reopened this Dec 4, 2024
@m417z
Copy link
Member

m417z commented Dec 5, 2024

The taskbar indeed disappears in some cases, and I added code to redraw it when some events occur, but looks like it doesn't help in your specific case.

Here's a version of the mod which logs all events for secondary taskbars:
https://github.com/m417z/my-windhawk-mods/blob/af51d22027dee0c2981a55d2bae93bc6f696d37c/mods/taskbar-vertical.wh.cpp

Can you please install it and post the logs? I hope the logs will help to find an additional event for which it makes sense to redraw the taskbar.

To install it, disable the existing mod, then click the bottom right button to create a new mod, replace the code with the test mod code, click "Compile Mod", then "Exit Editing Mode".

After installing it;

  • Go to the mod's Advanced tab.
  • Set Debug logging to Mod logs.
  • Click on Show log output.
  • Switch to a different monitor and trigger the bug.
  • Set Debug logging back to None.
  • Copy the log and post it here.

Note that you might want to configure Windhawk to be displayed on all virtual desktops to have it available after triggering the bug.

@stx8
Copy link
Author

stx8 commented Dec 5, 2024

Hi there, so it took me a bit to actually replicate the issue it was almost like it was fixed!

I have created the logs but I wonder if this is a non issue, its so specific that 1) Not many will hit it 1) maybe a disclaimer is better?

I am running a laptop that is a higher res than the secondary. I believe the issue occurs when one is fiddling with the scaling of the second monitor.. that was when I was able to get it to disappear. Otherwise, it seems to be re-drawing? Apologies if I've created a self issue!

Regardless, attached are the extra logs.

taskbarlog2.txt

@m417z
Copy link
Member

m417z commented Dec 5, 2024

Thanks. According to the log, the only events the secondary taskbar receives are resize events. Nothing more specific that I hoped to find that I could use to redraw the taskbar.

All in all, that indeed sounds quite specific, and unfortunately I don't have a quick fix in mind. Let's keep an eye on this issue, and if it becomes more common, I'll spend some more time to try and understand why it happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod-bug Something isn't working with a mod
Projects
None yet
Development

No branches or pull requests

2 participants