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

[Bug] hide_title_bar window effect causes visual glitch in PowerToys #802

Open
marzeq opened this issue Oct 20, 2024 · 1 comment
Open
Labels
type: bug Something isn't working

Comments

@marzeq
Copy link

marzeq commented Oct 20, 2024

Describe the bug

With the hide_title_bar effect enabled, there is a white bar on top of the PowerToys window, see screenshot:

image

Reproduction

No response

Stack trace or error logs (if applicable)

No response

Version number

v3.4.0

@marzeq marzeq added the type: bug Something isn't working label Oct 20, 2024
@github-project-automation github-project-automation bot moved this to 📬 Needs triage in glazewm Oct 20, 2024
@JonasWischeropp
Copy link
Contributor

This is currently a problem with all windows, not only PowerToys. When you look closely, you can see that the terminal has a small bar at the top as well. It is just more noticeable when it is white, like in the case of PowerToys.

I wasn't able to remove this bar at the top without removing the borders around windows as well.
Windows (OS) for some reason leaves this bigger border at the top when removing the titlebar from a window.
This small bar at the top could be removed by removing the WS_THICKFRAME property from a window, but this would also fully hide the border around the window (the border that changes its color to indicates the currently selected window).
Setting WS_BORDER didn't change this behavior.

Just wanted to leave that here as an explanation why hide_title_bar behaves this way.
I currently don't have the time to look into it, but there might be ways to fix it. For instance, I stumbled across this StackOverflow question that might help.
Not a fix, but this problem could be made less obvious by setting the topbar color with DWMWA_CAPTION_COLOR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: 📬 Needs triage
Development

No branches or pull requests

2 participants