Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix code completion window visibility issues#354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lucasmotta wants to merge3 commits intoCodeEditApp:main
base:main
Choose a base branch
Loading
fromlucasmotta:fix/code-completion-window-visibility

Conversation

@lucasmotta
Copy link

@lucasmottalucasmotta commentedSep 29, 2025
edited
Loading

Summary

CleanShot.2025-09-29.at.19.15.38.mp4

Fixes intermittent visibility problems where the code completion window would not appear visually despite functioning correctly for keyboard navigation.

Fixes#351

Changes Made

  • Window Style Mask: Replaced problematic.nonactivatingPanel and.utilityWindow with.borderless
  • Window Hiding Behavior: ChangedhidesOnDeactivate fromtrue tofalse
  • Window Properties: AddedcanHide = false andacceptsMouseMovedEvents = true
  • Window Ordering: Improved window showing sequence inshowWindow(attachedTo:)
  • Resource Cleanup: Added proper cleanup of notification observers inclose()

Root Cause

The.nonactivatingPanel style mask was preventing the window from becoming key, which caused:

  • The console warning:canBecomeKeyWindow returned NO
  • Inconsistent window visibility despite functional keyboard navigation

Solution

Using.borderless provides the clean appearance needed for code completion while ensuring reliable window display. This style mask is ideal for popover-style UI elements as it gives full control over positioning and appearance without the activation issues.

Test Plan

  • Code completion window appears consistently when triggered
  • Keyboard navigation (up/down arrows, Tab, Escape) works correctly
  • Window positioning and sizing work as expected
  • No morecanBecomeKeyWindow console warnings
  • Window closes properly when focus is lost

🤖 Generated withClaude Code

lucasmottaand others added3 commitsSeptember 29, 2025 19:11
Resolves intermittent visibility problems where the code completion window would not appear visually despite functioning correctly for keyboard navigation.Changes:- Replace problematic window style masks (.nonactivatingPanel, .utilityWindow) with .borderless- Set hidesOnDeactivate to false to prevent unexpected hiding- Add canHide = false and acceptsMouseMovedEvents = true for better window behavior- Improve window showing sequence in showWindow(attachedTo:)- Add proper cleanup of notification observers in close()The .nonactivatingPanel style was preventing the window from becoming key, causing the "canBecomeKeyWindow returned NO" warning and inconsistent visibility. Using .borderless provides the clean appearance needed for code completion while ensuring reliable display.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude <noreply@anthropic.com>
Removes .nonactivatingPanel from BezelNotification window style mask to eliminate console warnings while maintaining non-activating behavior through .hudWindow style.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude <noreply@anthropic.com>
@thecoolwinter
Copy link
Collaborator

thecoolwinter commentedSep 29, 2025
edited
Loading

I haven't had a chance to play with this yet but we do want to allow the user to resize the window horizontally. Can we make sure that's still happening after removing the.resizable flag?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

🐞 Suggestion window fails to draw

2 participants

@lucasmotta@thecoolwinter

[8]ページ先頭

©2009-2025 Movatter.jp