Skip to content

Frosted Glass (Blur) effect#2179

Draft
Drakulix wants to merge 9 commits intomasterfrom
frosted-glass_noble
Draft

Frosted Glass (Blur) effect#2179
Drakulix wants to merge 9 commits intomasterfrom
frosted-glass_noble

Conversation

@Drakulix
Copy link
Member

@Drakulix Drakulix commented Mar 10, 2026

Draft for supporting ext-background-effect-v1 in cosmic-comp.

Depends on ongoing smithay work:

This also introduces a config value (for testing, you need to remove that manually) in XDG_STATE/cosmic-comp/appearance_conf for the blur-strength, but I am pretty sure we want to move this into the CosmicTheme. So this is also partially blocked on support in libcosmic.

This ended up being much more complex than anticipated, due to necessary and quite invasive changes to smithay's public api and damage-tracking.

Additionally this reworks all of the element-collecting code with heavy inspiration of niri-wm/niri#3113. The blur-effect of the main-surface needs to not be affected by drop-shadows, but drop-shadows should still render below the main-surface. Which was easy enough for the floating layout, but when tiling we additionally want to make sure no drop-shadow can extend on-top of another tiled window, so I had to split the element-generation into "lower" and "top" surfaces to order all the drop-shadows in the middle.

This definitely needs wider testing with all the code this touches, but I cannot find any new rendering glitches at this point.


  • I have disclosed use of any AI generated code in my commit messages.
    • If you are using an LLM, and do not fully understand the changes it is making to the code base, do not create a PR.
    • In our experience, AI generated code often results in overly complex code that lacks enough context for a proper fix or feature inclusion. This results in considerably longer code reviews. Due to this, AI authored or partially authored PRs may be closed without comment.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

@git-f0x
Copy link
Contributor

git-f0x commented Mar 10, 2026

This seems to make the panel, applets and layer shell surfaces (e.g. workspace overview) very sluggish. Is that expected for now?

@Drakulix
Copy link
Member Author

This seems to make the panel, applets and layer shell surfaces (e.g. workspace overview) very sluggish. Is that expected for now?

Should be fixed now with the latest commits.

@ryzendew
Copy link

can you explain more about the appearance_conf and how the syntax for blur goes? the details are a littler lacking to test.

@Drakulix
Copy link
Member Author

can you explain more about the appearance_conf and how the syntax for blur goes? the details are a littler lacking to test.

The syntax is blur_strength: 1 with values from 0-14. (Though 0 doesn't actually disable it at the moment.)

The value is 9 by default, so you don't have to set it. If you aren't seeing any blur, the reason is simply, that you aren't running any application supporting the ext-background-effect-v1 protocol, as those are pretty rare at the moment. Our apps also don't make use of this yet.

@Drakulix Drakulix force-pushed the frosted-glass_noble branch from dca9582 to 6f5d97e Compare March 13, 2026 17:23
@Drakulix
Copy link
Member Author

This is now only really blocked figuring out how we want to configure this / make the necessary changes to cosmic-theme.

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.

3 participants