[macOS] Mouse cursor and click offset when launching in Full Screen (frame-state="6" conflict)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java, macos
調査の方向性
macOS で、記載されている Full Screen と再起動の手順に従って問題を再現し、その後、NetBeans の設定ディレクトリにある WindowManager.wswmgr ファイル、特にフレーム状態の値を調べます。ネイティブの Full Screen を終了して再起動した後に、カーソルやクリック位置のずれが発生せず、読み取り専用の回避策も必要なくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Apache NetBeans version
Apache NetBeans 30
What happened
Description
When closing NetBeans while in macOS native Full Screen mode, the IDE saves an invalid window state (frame-state="6") in the local configuration files. Upon the next launch, a coordinate mapping conflict occurs between the Java Swing/AWT frame management (Frame.MAXIMIZED_BOTH) and the macOS Full Screen Space manager. This results in a severe vertical/horizontal mouse coordinate and click offset across the entire UI.
Environment
- OS: macOS (Apple Silicon M1/M2/M3)
- NetBeans Version: Apache NetBeans 26, 28, 29, 30
- JDK: Java 21+
Root Cause Analysis
The issue originates in the window manager persistence file:
~/Library/Application Support/NetBeans/<version>/config/Windows2Local/WindowManager.wswmgr
-
Working State (
frame-state="0"):
When NetBeans starts withframe-state="0", window coordinates yield properly to macOS window management. Entering Full Screen mode manually works as expected with accurate mouse tracking. -
Corrupted State (
frame-state="6"):
Closing NetBeans while in macOS Full Screen mode writesframe-state="6"(Frame.MAXIMIZED_BOTH). On subsequent launches, Swing attempts to apply software-maximized geometry inside the native macOS Space, breaking the UI click matrix.
Steps to Reproduce
- Open Apache NetBeans on macOS.
- Enter native macOS Full Screen mode (
Control + Cmd + F). - Quit NetBeans (
Cmd + Q) while still in Full Screen. - Relaunch NetBeans.
- Result: The UI renders, but mouse clicks register with a offset relative to the visual cursor position.
Temporary Workaround
Set the file permissions to read-only on WindowManager.wswmgr after ensuring frame-state="0" is present:
chmod 444 "$HOME/Library/Application Support/NetBeans/<version>/config/Windows2Local/WindowManager.wswmgr"
Language / Project Type / NetBeans Component
No response
How to reproduce
Steps to Reproduce
- Open Apache NetBeans on macOS.
- Enter native macOS Full Screen mode (
Control + Cmd + F). - Quit NetBeans (
Cmd + Q) while still in Full Screen. - Relaunch NetBeans.
- Result: The UI renders, but mouse clicks register with a offset relative to the visual cursor position.
Did this work correctly in an earlier version?
Apache NetBeans 26 or earlier
Operating System
macOS
JDK
SDK 26
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
Temporary Workaround
Set the file permissions to read-only on WindowManager.wswmgr after ensuring frame-state="0" is present:
chmod 444 "$HOME/Library/Application Support/NetBeans/<version>/config/Windows2Local/WindowManager.wswmgr"
Are you willing to submit a pull request?
No
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 939
- 平均マージ
- 4日 21時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/netbeans のほかの issue
-
Contribution welcome kind:feature Platform
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/netbeans#9614 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
kind:bug LSP needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/netbeans#9548 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Editor Java kind:feature needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
The main Options dialog window has buttons with OK on the left instead of on the right on Linuxオープンkind:bug needs:triage os:linux os:macos Platform UI
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
kind:bug needs:triage
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
apache/netbeans の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sqlcipher/sqlcipher-android#97 · コメント 1 件 ·
-
bug IIIF interoperability
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Netcracker/qubership-integration-platform#1046 ·
メンテナーはふだん 2 日以内に返信
-
`check_java_version()` fails when Java path contains spaces (Windows / Git Bash, `C:\Program Files`)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100