| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Change FileDialog modality from APPLICATION_MODAL to DOCUMENT_MODAL in Base.java, Sketch.java, and ShimAWT.java so file dialogs only block their parent window on Linux/Windows. - Replace orphan Frame() parents in Messages.kt with a helper that uses KeyboardFocusManager to find the active window and creates DOCUMENT_MODAL dialogs, preventing message popups from freezing all IDE windows. Note: Native macOS file dialogs ignore Java modality settings (Apple limitation), but all JOptionPane-based messages are now fixed across all platforms.
|
Awesome, thanks for finding this and fixing. will review |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Problem
When a modal message appears (error, warning, "Save first", etc.), it freezes ALL Processing IDE windows. Users can't interact with any other window, and the modal can get lost behind other windows with no way to recover.
Root Cause
Fix
-Messages.kt: Created a showModalDialog() helper that finds the currently active window via KeyboardFocusManager and creates DOCUMENT_MODAL dialogs. Replaced all 5 JOptionPane.showMessageDialog(Frame(), ...) calls with this helper.
Result
Testing
Fixes #1375