Skip to content

Fix hiding a dock-placed native window's tile via Apps & Icons - #407

Merged
AllTerrainDeveloper merged 1 commit into
trunkfrom
fix/405-hide-native-window-dock-tile
Jul 23, 2026
Merged

Fix hiding a dock-placed native window's tile via Apps & Icons#407
AllTerrainDeveloper merged 1 commit into
trunkfrom
fix/405-hide-native-window-dock-tile

Conversation

@AllTerrainDeveloper

@AllTerrainDeveloper AllTerrainDeveloper commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Fixes #405

Native windows registered with placement: 'dock' (Games) render as system tiles, which bypassed the Apps & Icons itemVisibility overrides — hiding the item removed the wallpaper icon but the dock tile stayed.

The layout dispatcher now resolves each system tile's visibility (keyed by the desktop icon targeting its window, falling back to the tile id; no override = visible, so OS Settings / Recycle Bin tiles are untouched) and attaches/detaches tiles live on settings saves, boot, and layout rebuilds. "On the desktop" now also removes the dock tile; "On the dock" / "On both" keep it.

  • src/desktop-layout.ts — visibility-aware system-tile reconcile
  • tests/vitest/desktop-layout.test.ts — 5 regression tests
  • docs/javascript-reference.mdfullSystemTiles row updated

🤖 Generated with Claude Code

https://claude.ai/code/session_01WCknM6zk6JS14pdLUiqdRR

Open WordPress Playground Preview

Native windows registered with placement 'dock' (Games) render as
system tiles, which bypassed the itemVisibility overrides entirely:
hiding the item removed the wallpaper icon but the dock tile stayed.
The layout dispatcher now resolves each system tile's visibility
(keyed by the desktop icon targeting its window, falling back to the
tile id) and attaches/detaches tiles live on every settings save.

Fixes #405

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WCknM6zk6JS14pdLUiqdRR
@AllTerrainDeveloper
AllTerrainDeveloper enabled auto-merge (squash) July 23, 2026 18:44
@AllTerrainDeveloper
AllTerrainDeveloper merged commit b5e161e into trunk Jul 23, 2026
5 checks passed
@AllTerrainDeveloper
AllTerrainDeveloper deleted the fix/405-hide-native-window-dock-tile branch July 23, 2026 18:44
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.

Can't hide "games" icon

1 participant