[macOS] Mouse cursor and click offset when launching in Full Screen (frame-state="6" conflict)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- java, macos
- Ambito
- desktop, operating-systems
Direzione di ricerca
Riprodurre il problema su macOS seguendo i passaggi elencati per Full Screen e il riavvio, quindi esaminare il file WindowManager.wswmgr nella directory di configurazione di NetBeans, in particolare il valore dello stato del frame. Il lavoro è completato quando uscire da Full Screen nativo non causa più uno spostamento del cursore o della posizione del clic dopo il riavvio, senza richiedere la soluzione alternativa di sola lettura.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 3.1k
- Fork
- 939
- Merge medio
- 5g 12h
- PR unite (30g)
- 23
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/netbeans
-
Contribution welcome kind:feature Platform
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/netbeans#9614 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
kind:bug LSP needs:triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/netbeans#9548 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Editor Java kind:feature needs:triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
The main Options dialog window has buttons with OK on the left instead of on the right on LinuxApertakind:bug needs:triage os:linux os:macos Platform UI
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
kind:bug needs:triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/netbeans
Issue simili
-
GeminiUtil placeholder user turn ("Continue output. DO NOT look at this line ...") is flagged by prompt injection filtersForse già presa @innoprej l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Broken links in the docsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
salesforce/multicloudj#667 ·
I maintainer di solito rispondono entro 1 giorno
-
Add ZammadForse già presa @Arslan-TR l’ha presa oggi. Apertarequest
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
endoflife-date/endoflife.date#11298 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
electron tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno