mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
macOS: (temporary) disabled rounded popup border (see PR #772) on macOS 14.4+ because it may freeze the application and crash the macOS WindowServer process
This commit is contained in:
@@ -70,6 +70,13 @@ FlatLaf Change Log
|
||||
(some security software allows loading native library but blocks method
|
||||
invocation).
|
||||
- macOS: Fixed crash when running in WebSwing. (issue #826; regression in 3.4)
|
||||
- macOS: Disabled rounded popup border (see PR #772) on macOS 14.4+ because it
|
||||
may freeze the application and crash the macOS WindowServer process (reports
|
||||
vary from Finder restarts to OS restarts). This is a temporary change until a
|
||||
solution is found. See NetBeans issues
|
||||
[apache/netbeans#7560](https://github.com/apache/netbeans/issues/7560#issuecomment-2226439215)
|
||||
and
|
||||
[apache/netbeans#6647](https://github.com/apache/netbeans/issues/6647#issuecomment-2070124442).
|
||||
|
||||
#### Incompatibilities
|
||||
|
||||
|
||||
@@ -113,7 +113,13 @@ public class FlatPopupFactory
|
||||
// macOS and Linux adds drop shadow to heavy weight popups
|
||||
if( SystemInfo.isMacOS || SystemInfo.isLinux ) {
|
||||
NonFlashingPopup popup = new NonFlashingPopup( getPopupForScreenOfOwner( owner, contents, x, y, true ), owner, contents );
|
||||
if( popup.popupWindow != null && SystemInfo.isMacOS && FlatNativeMacLibrary.isLoaded() )
|
||||
if( popup.popupWindow != null && SystemInfo.isMacOS &&
|
||||
// do not use rounded border on macOS 14.4+ because it may freeze the application
|
||||
// and crash the macOS WindowServer process (reports vary from Finder restarts to OS restarts)
|
||||
// https://github.com/apache/netbeans/issues/7560#issuecomment-2226439215
|
||||
// https://github.com/apache/netbeans/issues/6647#issuecomment-2070124442
|
||||
SystemInfo.osVersion < SystemInfo.toVersion( 14, 4, 0, 0 ) &&
|
||||
FlatNativeMacLibrary.isLoaded() )
|
||||
setupRoundedBorder( popup.popupWindow, owner, contents );
|
||||
return popup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user