Disable focus on other window actions#231
Conversation
…redock functionality
… callerPinned flags
…nd context for callerPinned
|
@claude Can you review please? |
|
Claude finished @AllTerrainDeveloper's task in 1m 50s —— View job Code Review
The fix is in the right place and the guard logic is correct. A few things worth looking at before merging: What the change doesIn Issues1. Framework policy: automatic behavior without a hook (moderate)
This change auto-exits fullscreen on focus change, which is appropriate for a "focus mode" text-editor window but could be wrong for a plugin that uses fullscreen for an immersive game, slideshow, or video player — those plugins may want fullscreen to persist until the user explicitly exits it. Consider whether this should be opt-out (e.g. a 2. No test coverage (minor) The existing fullscreen test at 3. Inline comment references a specific repro path (minor)
The comment at line 935–937 includes: That repro belongs in the PR description or commit message, not the source. The broader invariant ("fullscreen z-index is above all other windows") is the thing worth preserving in the comment. Non-issues (confirmed correct)
Summary: The core logic is sound and fixes a real UX bug. The main question before merging is whether the framework should auto-exit fullscreen unconditionally or give plugins an opt-out. A test covering the new behavior would also be a good addition. |
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
…havior on focus change
Closes #230