linebender / linebender/druid

Mac: Transparent window shadow is not updating with invalidation

Open
#1,687 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug shell/mac
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

@cmyr noticed that on Mac the shadow made by the OS does not update when the window is invalidated.

There needs to be a call to [`invalidateShadow() (Apple Developers)`](https://developer.apple.com/documentation/appkit/nswindow/1419529-invalidateshadow) on invalidation to make the shadow update.

There is a video of the artefact here:

https://xi.zulipchat.com/#narrow/stream/147926-druid/topic/semi-transparent.20.2F.20piet.2Eclear.20rework/near/232624600

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Mac window invalidation handling and the code that updates the window after invalidation. Check how invalidateShadow() is exposed by Apple’s AppKit documentation, then ensure it is called during invalidation so the transparent window shadow updates; verify the reported artefact no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.