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

window-actor: Only fall back to shadows if the window has a shape #415

Closed
wants to merge 1 commit into from
Closed

window-actor: Only fall back to shadows if the window has a shape #415

wants to merge 1 commit into from

Conversation

jaszhix
Copy link
Contributor

@jaszhix jaszhix commented Jan 19, 2019

This includes all of the windows I think we would want to have shadows, such as framed windows, GTK CSD windows, and chromium windows.

This removes shadows on windows such as Steam, which has artifacts because it initially maps its menus outside of the parent window causing it to lose focus, which makes the shadow border flicker between focused and unfocused while hovering over selections.

Ref #398

These windows includes all of the windows I think we would want to have
shadows, such as framed windows, GTK CSD windows, and chromium windows.
This removes shadows on windows such as Steam, which has shadow
artifacts because it initially maps its menus outside of the application
window bounds.
@clefebvre
Copy link
Member

clefebvre commented Feb 9, 2019

I see two issues with Steam and they're both visible in the video.

https://github.com/linuxmint/muffin/files/2771746/mint191_menu_glitch.mp4.zip

  • The most visible issue is that both Steam itself and its menus act like windows with shadows, so when you open a menu in Steam, muffin thinks the main Steam window isn't focused anymore and draws a smaller shadow than before... this is fixed by this PR as it removes the shadow on the main window.

  • Artifacts show in the top left corner of the screen. This is only partially fixed by this PR. Although the main window loses its shadows, some of the menus still generate shadows.

@jaszhix
Copy link
Contributor Author

jaszhix commented Feb 9, 2019

I think this could be fixed by doing a full revert of 9ce8125.

I can't spend any more energy on this, especially when I think shadows look stupid on CSD windows that are not intended to have any.

@clefebvre
Copy link
Member

OK, just tested a revert of 9ce8125, it affects chrome/chromium but has no impact on steam and doesn't fix this bug.

I also checked steam under Marco and Metacity, both render shadows not only for Steam, but for its menus... and they both have the same issue as Muffin, i.e. they both suffer from https://github.com/linuxmint/muffin/files/2771746/mint191_menu_glitch.mp4.zip

@clefebvre
Copy link
Member

I'm going to close this. I think since it affects all DEs, it's up to Steam to fix it. They should use proper menus really, not defocus their main windows like they're doing now.

@clefebvre clefebvre closed this Feb 11, 2019
@jaszhix
Copy link
Contributor Author

jaszhix commented Feb 11, 2019

I think it's still a Muffin issue. Steam does not create shadows for its menus, which means we're applying shadows to window types we shouldn't be. This is not a Steam bug because as far as they're concerned those window menus are not visible in other WMs while being mapped.

@jaszhix jaszhix reopened this Feb 11, 2019
@jaszhix
Copy link
Contributor Author

jaszhix commented Feb 11, 2019

@jaszhix jaszhix closed this Feb 11, 2019
@jaszhix jaszhix deleted the shadows-on-shaped-windows branch February 11, 2019 16:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants