Commit Graph

85091 Commits

Author SHA1 Message Date
Nikita Tsarev
4647e593e8 Revert "8230926: [macosx] Two apostrophes are entered instead of one with "U.S. International - PC" layout"
This reverts commit 5049cad2b0.

After JBR-5173 this workaround is no longer necessary

(cherry picked from commit fbb7ba8c0b)
2025-08-23 11:51:05 +04:00
Nikita Tsarev
11bcbd898a JBR-5233 Setup/teardown necessary keyboard layouts in macOS keyboard tests
(cherry picked from commit 1fa48463f2)
2025-08-23 11:51:05 +04:00
Nikita Tsarev
1ddc67edff JBR-5173 macOS keyboard support rewrite
with fix for JBR-5300 Change source code and test files to use GPL license

(cherry picked from commit 88c281a243)
2025-08-23 11:51:05 +04:00
Nikita Tsarev
ed8e884d83 Revert "macOS national keyboard support"
This reverts commit 21bffd06bc.

(cherry picked from commit 7806ef7ff3)
2025-08-23 11:51:05 +04:00
Nikita Provotorov
1ad8de6338 JBR-5107, JBR-5114: SIGILL/OOM from Java_sun_lwawt_macosx_LWCToolkit_getKeyboardLayoutNativeId.
A theoretical fix, it should:
- Catch any NSException (as it was initially expected);
- Probably fix possible memory leaks (by moving the layoutId var inside autoreleasepool).

(cherry picked from commit ae9520ce4f)
2025-08-23 11:51:04 +04:00
Nikita Tsarev
49fdbbeee5 JBR-4990: Undo changes to ExtendedKeyCodes
(cherry picked from commit 823086623e)
2025-08-23 11:51:04 +04:00
Nikita Tsarev
4527df9305 JBR-3860: Fix shortcut behavior when Shift is the only modifier
(cherry picked from commit e419730031)
2025-08-23 11:51:04 +04:00
Nikita Tsarev
db0efffe76 JBR-4990: Fix regression tests for national keyboard layouts on macOS
(cherry picked from commit 5835150f63)
2025-08-23 11:51:03 +04:00
Vitaly Provodin
c288630b22 update exclude list on results of 21.0.2_b393.7 test runs
(cherry picked from commit a396e62035)
2025-08-23 11:51:03 +04:00
Nikita Gubarkov
77e5847322 JBR-6723 flush vertex cache and command buffer before freeing glyph cache. (#334)
(cherry picked from commit 1faccf3995)
2025-08-23 11:51:03 +04:00
Alexey Ushakov
29a7a11f88 JBR-6785 wsl: update build scripts for linux target
Added explicit platform target

(cherry picked from commit 3b96e66202)
2025-08-23 11:51:03 +04:00
Vitaly Provodin
46bc5a58ec Update README.md
(cherry picked from commit 74b00b6c2f)
2025-08-23 11:51:02 +04:00
Vitaly Provodin
750b741803 Update README.md
(cherry picked from commit 163ce4ecce)
2025-08-23 11:51:02 +04:00
Maxim Kartashev
1450002548 JBR-6742 Record resident set size in JVM fatal error log
(cherry picked from commit 5cc72b464b)
2025-08-23 11:51:02 +04:00
Alexey Ushakov
5a452acc7f JBR-6522 macOS: SIGSEGV at [libawt_lwawt.dylib+0x8eaa8] MTLGC_DestroyMTLGraphicsConfig
Fix of MT access to shared data in MTLGraphicsConfigInfo

(cherry picked from commit ecc46c6004)
2025-08-23 11:51:01 +04:00
Dmitry Drobotov
f5f037de51 JBR-6593 Fix UI freezes with JAWS announcements
* Execute AccessibleAnnouncer.nativeAnnounce on a background thread on Windows to fix UI freezes. IntelliJ calls this method from EDT, but it doesn't need to run on EDT because on Windows it simply calls screen readers API without interacting with UI components. Additionally, when using a background thread, the JAWS SayString method, which previously could have been running for multiple seconds, is now executed immediately as expected, but the root cause of previous delays is unclear.
* In JawsAnnouncer, initialize COM library with the multithreaded model to allow executing it from different threads. Now COM is initialized and uninitialized on every call of the method as required by the [documentation](https://learn.microsoft.com/en-us/windows/win32/learnwin32/initializing-the-com-library): "Each thread that uses a COM interface must make a separate call to this function. For every successful call to CoInitializeEx, you must call CoUninitialize before the thread exits". IJawsApi COM object is still static and reused by different threads, which is allowed with a multithreaded concurrency model. It shouldn't cause issues because it has no state and only forwards calls to JAWS.

(cherry picked from commit 8cc4cd5cfd)
(cherry picked from commit d7d8d9b8e4)
(cherry picked from commit 8bfd24f89f)
2025-08-23 11:51:01 +04:00
Vitaly Provodin
e3ad114fa2 update exclude list linux-x86 failures
(cherry picked from commit 264bcf41f9)
2025-08-23 11:51:01 +04:00
Vitaly Provodin
88fe4bf31d update exclude list on results of 22_b2075 test runs
(cherry picked from commit 37a71238b2)
2025-08-23 11:51:01 +04:00
Vitaly Provodin
b04c52a718 update exclude list - remove failures no having tickets
(cherry picked from commit 4d11023858)
2025-08-23 11:51:00 +04:00
Nikita Provotorov
de3bc09c47 JBR-3697: Letter-based command mode actions are not triggered when using Chinese input method.
Fixes different platform-specific issues with disabling/enabling input methods support via java.awt.Component#enableInputMethods(boolean):
* Windows: disabling used to require to deactivate and then activate back the app window to be performed completely ;
* macOS: disabling used to leave the input method window visible (however, it wasn't affecting the input) ;
* Linux: with fcitx5 IMF (may not be reproduced with iBus) disabling and then enabling back the input method support used to reset the used input source (keyboard layout) to a default one. It's done via disabling the current XIM when the input method support is disabled instead of disposing it .

(cherry picked from commit 2933ea89f0)

The patch also contains the fix for "JBR-6711: java/awt/LightweightDispatcher/LWDispatcherMemoryLeakTest.java: JButton JPanel not collected."

It unsets its references to tracked components thus not preventing GC from collecting them.

(cherry picked from commit e9aab98a6c)
(cherry picked from commit 13284aa508)
2025-08-23 11:51:00 +04:00
Dmitry Drobotov
8d5e4c89e6 JBR-6325 Implement keyboard focus tracking for macOS Accessibility Zoom
* Call UAZoomChangeFocus function when the keyboard focus is changed or when an accessible selection event is fired. Zoom viewport fill follow the accessible frame of the newly focused component, and if it has a selected child, its frame will be passed as part that needs to be highlighted.
* Fix an exception in ComboBoxAccessibility.accessibilitySelectedChildren when its selection is nil. This happens when a combo box doesn't have a selected item, and it this case Zoom wouldn't be able to follow the combo box location.
* Move the native handler of CAccessibility.focusChanged method from the legacy JavaComponentAccessibility to the new CommonComponentAccessibility class. It calls a class method (like a static method in Java), so there is no difference in which specific class it's located, but it allows to write the new code in the appropriate class.

(cherry picked from commit 75b06421ff)
(cherry picked from commit d0f47ced65)
2025-08-23 11:51:00 +04:00
Vitaly Provodin
ef7622bdb3 Update README.md
(cherry picked from commit b93b6a39fc)
2025-08-23 11:50:59 +04:00
Dmitrii Morskii
e2ee055f7c JBR-5500 Handled situation of processing WM_ENDSESSION in process of closing application
(cherry picked from commit c87b70ad46)
2025-08-23 11:50:59 +04:00
Vitaly Provodin
ba033537d8 Update README.md
(cherry picked from commit 588d57f140)
2025-08-23 11:50:59 +04:00
Dmitry Drobotov
8ad63b3c28 JBR-6472 Add default value in CAccessibility.isComboBoxEditable to avoid NPE
(cherry picked from commit 93937603b3)
(cherry picked from commit 6a70aebb6b)
2025-08-23 11:50:59 +04:00
Alexey Ushakov
0d6c9f0462 JBR-6612 Provide standard scripts for performance measurements
run_rp.sh - additional checks

(cherry picked from commit e1cf099c09)
2025-08-23 11:50:58 +04:00
Maxim Kartashev
80064f679c JBR-6246 Do not overwrite CDS archives after created with jlink
(cherry picked from commit 457e760872)
2025-08-23 11:50:58 +04:00
Alexey Ushakov
316b099843 JBR-6612 Provide standard scripts for performance measurements
Initial implementation for linux and macOS

(cherry picked from commit fe09bf671b)
2025-08-23 11:50:58 +04:00
Nikita Tsarev
237f9405d4 JBR-6297: Don't check for NSInputManager wantsToHandleMouseEvents in mouseDown by default
(cherry picked from commit c08268def6)
2025-08-23 11:50:58 +04:00
Maxim Kartashev
815e6facdf Update README.md with up-to-date build instructions
(cherry picked from commit 695d0a0577)
2025-08-23 11:50:57 +04:00
Vitaly Provodin
e92ae27d94 Update README.md
(cherry picked from commit 22f4dd6d4a)
2025-08-23 11:50:57 +04:00
Vitaly Provodin
1a916b9f83 Update README.md
(cherry picked from commit c6cc4d76c1)
2025-08-23 11:50:57 +04:00
Alexey Ushakov
aa3c9f3892 JBR-6522 macOS: SIGSEGV at [libawt_lwawt.dylib+0x8eaa8] MTLGC_DestroyMTLGraphicsConfig
Performing flush of pending rendering operation before destroying MTLGraphicsConfig

(cherry picked from commit b25bd3ac13)
2025-08-23 11:50:56 +04:00
Nikita Gubarkov
0a5eebc320 JBR-4618 Force window size update after display reconfiguration
- Re-create all GraphicsDevices on displayChanged()

(cherry picked from commit a59d4903b2)
2025-08-23 11:50:56 +04:00
Dmitrii Morskii
39dab2ef64 JBR-6671 added option 'freetype.font.rendering'
(cherry picked from commit a24c5bbcdb)
2025-08-23 11:50:55 +04:00
Dmitrii Morskii
1642d3ec60 Revert "JBR-6346 update Inter font version"
This reverts commit 7712e529330674b83e39c8e81701db32436d42dc.

(cherry picked from commit 1752433479)
2025-08-23 11:50:55 +04:00
bourgesl
399c1a3b3d Revert "JBR-6522: ensure thread-safety in MTLGC_DestroyMTLGraphicsConfig (pthread_mutex_t)"
This reverts commit e7e3638c52.

(cherry picked from commit a2ee33a45a)
2025-08-23 11:50:55 +04:00
bourgesl
2dc8923d97 JBR-6522: ensure thread-safety in MTLGC_DestroyMTLGraphicsConfig (pthread_mutex_t)
(cherry picked from commit 3ddc59a433)
2025-08-23 11:50:54 +04:00
Vitaly Provodin
f2ecc3abe6 JBR-6649 add synchronization for creating UI
(cherry picked from commit 9618df8e14)
2025-08-23 11:50:54 +04:00
Nikita Gubarkov
df30a60ce8 JBR-6651 Exclude keycap emoji from EmojiVariation test.
(cherry picked from commit bb1926d974)
2025-08-23 11:50:54 +04:00
Vitaly Provodin
7d919c9426 update exclude list on results of 22_b2014 test runs
(cherry picked from commit 99eb375cfd)
2025-08-23 11:50:53 +04:00
Dmitrii Morskii
ae9e877b9c JBR-6346 update Inter font version
(cherry picked from commit 30820c33ba)
2025-08-23 11:50:53 +04:00
Vitaly Provodin
5791b26464 Update README.md
(cherry picked from commit 4fef254b44)
2025-08-23 11:50:53 +04:00
Vitaly Provodin
36ab3a6bcc remove resolved issues from exclude list
(cherry picked from commit 1bdef4e67a)
2025-08-23 11:50:53 +04:00
Vitaly Provodin
a3f54eb126 Update README.md
(cherry picked from commit 888e8bda45)
2025-08-23 11:50:52 +04:00
Dmitrii Morskii
9a8826cc03 JBR-6604 supported case when fonts directory is missing
(cherry picked from commit a622888816)
2025-08-23 11:50:52 +04:00
Aleksey Shipilev
1e760aab17 update exclude list on results of main.2003 test runs
(cherry picked from commit 2f441c0a3b)
2025-08-23 11:50:52 +04:00
Vitaly Provodin
ac1037ba98 JBR-6591 specify values for the configure options --with-vendor-url and --with-vendor-bug-url
(cherry picked from commit b7f236be6b)
2025-08-23 11:50:51 +04:00
Dmitry Batrak
46e5ce8adb JBR-6449 Introduce FontMetricsAccessor into JBR API
JBRE-MR-368

(cherry picked from commits f0d5a907ac, 5befaea6af, ea2c4bfc83, 04601189604827c115a5a3b36aa268ba5c39ef3dб 20468cf28b)

(cherry picked from commit bb67fc186a)
2025-08-23 11:50:51 +04:00
Vitaly Provodin
d818c36309 JBR-6558 synchronize drawing and the test checking
(cherry picked from commit a8f38d8682)
2025-08-23 11:50:51 +04:00