Skip to content

feat(animation): make dim_unfocused darken unfocused windows - #947

Open
jdcodes28 wants to merge 1 commit into
noctalia-dev:mainfrom
jdcodes28:feat/darker-dimming
Open

jdcodes28 wants to merge 1 commit into
noctalia-dev:mainfrom
jdcodes28:feat/darker-dimming

Conversation

@jdcodes28

Copy link
Copy Markdown

Summary

Currently, animation.dim_unfocused makes windows transparent, so the name feels a bit misleading. This PR makes that setting darken unfocused windows.

Motivation

We can already set unfocused windows' opacity using window rules, but there isn't a way to dim unfocused windows.

Type of Change

  • New feature
  • Breaking change

Related Issue

N/A

Testing

  • just test — 167/168 passed (umbriel:config-load passed; umbrielfx:hdr-sdr-capture failed on local NVIDIA GBM XR30 allocation, unrelated)
  • just check animation/dim_unfocused -v — 1/1 passed (2.06s)
  • just check-stress animation/dim_unfocused — 32/32 passed (5.04s)
  • just check animation/ focus/ — 75/75 passed (16.70s)
  • AR=gcc-ar just tracy headless benchmark (RTX 2080 Ti, 1280×720@60 Hz, unfocused 800×600 vkmark, 3× 5s disconnected immediate runs + 4s tracy-capture):
    • dim = 0.0 vs 0.3 (corner_radius = 0): fx_render_pass GPU median 20.42 → 22.78 µs (+2.36 µs), View::handleCommit CPU median 5.93 → 6.13 µs (+0.20 µs), vkmark median 4741 → 4869 FPS
    • dim = 0.0 vs 0.3 (corner_radius = 12): fx_render_pass GPU median 23.07 → 26.51 µs (+3.44 µs), View::handleCommit CPU median 5.69 → 6.49 µs (+0.80 µs), vkmark median 4929 → 4415 FPS
  • Manual testing on multiple machines with different monitor setups (verified visuals, focus transitions, and low CPU usage)

Manual Coverage

  • Tested in a native Umbriel session
  • Tested with multiple monitors
  • Tested with native Wayland applications
  • Tested with X11 applications through Xwayland
  • Tested with the scrolling layout

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++, shader, or Markdown changes.
  • I ran the relevant build, test, lint, or verification commands, or explained why they were not run.
  • I functionally verified compositor behavior where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/ and examples/config.toml, or this PR does not change user-facing configuration or behavior.
  • I used canonical names for config keys, IPC actions, paths, and identifiers.

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.

1 participant