Commit Graph

80420 Commits

Author SHA1 Message Date
Vitaly Provodin
eb55eb56b5 exclude sun/java2d/SunGraphics2D/EmptyClipRenderingTest.java on windows due to 8144029 2024-09-19 02:02:04 +02:00
Maxim Kartashev
17eda59566 JBR-3948 Linux: SIGSEGV at [libawt_xawt] Java_sun_awt_X11_XInputMethod_createXICNative
The problem: the crashes occur in createStatusWindow() when calls like
adata->AwtColorMatch() end up going to 0x0 pc or some random inaccessible
memory. The only reason for that seems to be the
getDefaultConfig(screen) returning either NULL or garbage. That, in turn, probably
happens because of the wrong screen number provided. Before JBR-3623 was
fixed, awt_numScreens could've changed between the time the screen
number was chosen and the getDefaultConfig() call. After JBR-3623 was
fixed, this change is protected with the AWT lock, which this code
holds.
The fix: obtain the screen number via the Xlib API rather than the
ad-hoc loop though the root windows and return NULL if
getDefaultConfig() doesn't return useable data.

(cherry picked from commit 3d23e8d6a5)
2024-09-19 02:02:04 +02:00
Vitaly Provodin
578db782a9 add exclude list for Scale2 test runs 2024-09-19 02:02:04 +02:00
Vitaly Provodin
1d432330fc exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java due to 8134231 2024-09-19 02:02:04 +02:00
Alexey Ushakov
20fe0945f4 JBR-3773 M1 java/awt/Window/WindowAppearanceTest/WindowAppearanceTest.java: : Incorrect color java.awt.Color[r=75,g=74,b=72]at (140,5)
Added more variants of colors for unfocused and focused titles
2024-09-19 02:02:04 +02:00
Artem Semenov
83a8a5bb7d JBR-3775 Optimize the algorithm for obtaining tree elements 2024-09-19 02:02:04 +02:00
Nikita Gubarkov
719dbcd5a7 JBR API v0.0.2
Added file dialog customization via JBR API & fixed bugs in windows common item dialog

with fix for JBR-5300 Change source code and test files to use GPL license
2024-09-19 02:02:04 +02:00
Vitaly Provodin
cca02887a5 JBR-3931 add the module jdk.unsupported.desktop into jbr
(cherry picked from commit 32def2fd42)
2024-09-19 02:02:04 +02:00
Alexey Ushakov
e74473d355 JBR-4111 [JBR17] Make possible to select files and directories independently
Implemented apple.awt.fileDialogForFiles property
2024-09-19 02:02:04 +02:00
Vitaly Provodin
bc6ec30e2e enable fixed tests to regular runs 2024-09-19 02:02:04 +02:00
Vitaly Provodin
cc975102e0 exclude javax/swing tests on mac-aarch64 due to 8277816 2024-09-19 02:02:04 +02:00
Aleksandr Veselov
f58f72171f JBR-4107 A11y: macOS - wrong frame position if window is not on primary screen 2024-09-19 02:02:04 +02:00
Alexey Ushakov
20f87fcef5 JBR-4060 [JBR17+Metal] Flickering on button's shadow
Removed unnecessary global flag. Optimized mask cache texture clearing code.
2024-09-19 02:02:04 +02:00
Alexey Ushakov
d9afd0d5df JBR-3954 Transparent text color rendering (needed for experimental UI)
Performed conversion from ARGB_PRE to ARGB in the grayscale text shader
2024-09-19 02:02:03 +02:00
Alexey Ushakov
8fe0cdf324 JBR-3872 [JBR17+Metal] Wrong color for scrollbars and inlay hints
Corrected typo in setTxtUniforms and fixed alpha blending in frag_gmc_text shader
2024-09-19 02:02:03 +02:00
Alexey Ushakov
a518ad699b JBR-3820 Gamma correction for grayscale text in Metal rendering pipeline
Implemented gamma correction using the same approach that we did for OGL grayscale text rendering (OGLTextRenderer.c)
Optimized shader performance
2024-09-19 02:02:03 +02:00
Alexey Ushakov
6281d0fe92 JBR-4104 jbr-dev compilation failure
Corrected suppress warnings
2024-09-19 02:02:03 +02:00
Dmitry Batrak
88bc663078 JBR-4084 Default font '. AppleSystemUIFont' does not have bold weight on Chinese characters
(cherry picked from commit 4fde082d53)
2024-09-19 02:02:03 +02:00
Maxim Kartashev
392b1162c3 JBR-3899 SIGSEGV at [libjvm] _ZN23JfrNetworkInterfaceName11on_rotationEv
Prevent JfrNetworkInterfaceName::on_rotation() to dereference a
potentially NULL pointer.

(cherry picked from commit b2a9372d70)
2024-09-19 02:02:03 +02:00
Dmitry Batrak
d4d7379fd6 JBR-4021 Unexpected focus event order on window showing
(cherry picked from commit 2a398ebb24)

includes fix for JBR-4131 Popup doesn't get focus if created from context menu

(cherry picked from commit 685562aafc)
2024-09-19 02:02:03 +02:00
Maxim Kartashev
577659db00 JBR-3923 Internal Error in c1_Instruction.cpp
Make C1 hotspot compiler bail out during CFG construction if there's a
cycle in the graph that isn't a natural loop and that has led to an
unexpected state of stack/locals like missing a phi function.

This is a temporary measure that lets hotspot continue working
even after encountering such bytecode patterns. The full solution
will probably involve more sophisticated CFG checks.

(cherry picked from commit aa0b61cb75)
2024-09-19 02:02:03 +02:00
Vitaly Provodin
52b8d897de exclude tests spontaneously creating windows during test execution 2024-09-19 02:02:03 +02:00
Maxim Kartashev
fc4181aa4f JBR-2755 IDE UI became slow via remote X Server connection from Windows
When XGetImage() calls become slow in a remote X11 session, fake
XGetImage() with client-side XCreateImage() that is filled with some
background color. The color is chosen from several top left corner
pixels of the "slow" images obtained with XGetImage().

This feature activates in a remote X11 session only and is
controlled with -Dremote.x11.workaround={true|false|auto}.
2024-09-19 02:02:03 +02:00
Alexey Ushakov
c9416e8c69 JBR-3924 CMD+Tilda does not switch app windows
Introduced vm property to disable capturing of next app window shortcut
2024-09-19 02:02:03 +02:00
Nikita Gubarkov
714be6f950 JBR-2917 Added emoji support for Windows
JBR-3951 Pass real glyph type from native code instead of guessing it by rowBytes & width
2024-09-19 02:02:03 +02:00
Pavel
cf4694239e JBR-3926 make AwtComponent transparent for hit events by default
* JBR-3926 make AwtComponent transparent for hit events by default

* [WIP] pass hittest event to frame only if custom decoration is enabled and frame ready to handle it
(cherry picked from commit c0e26ff5d5)
2024-09-19 02:02:03 +02:00
Maxim Kartashev
fab200c793 JBR-3896 Abysmally slow input and UI performance since upgrade to IU-213.4928.7 from previous 2021.3 EAP version
The slowness was the result of XWM.getInsetsFromExtents() repeated
attempts to acquire frame extents from a property that under Sway is
simply unavailable. Each attempt added at least 20ms to every re-draw.

Prior to (repeatedly) checking for NET_FRAME_EXTENTS property of a
window, check that the property is supported by the window manager.

(cherry picked from commit b40cc1c791)
2024-09-19 02:02:02 +02:00
Dmitry Batrak
53aa647dcb log LWCToolkit invokeAndWait requests
as part of JBR-3017, to make investigation of similar issues simpler in the future

(cherry-picked from commit a7fd723e43)
2024-09-19 02:02:02 +02:00
Alexey Ushakov
5e46221911 JRE-202 Deadlock in CGLGraphicsConfig.getCGLConfigInfo
Added processing system events while waiting for OGLRenderQueue.lock
Moved getCGLConfigInfo logic execution to AppKit thread so, awt lock is
 taken on one thread

(cherry picked from commit d1c8bf03e1bd41cb075aa73cc39558103af7fe1a)
(cherry picked from commit 6bf9f31986be64acf3755b34568802f9960a66ec)
(cherry picked from commit 4e21d67e0369bffac45662c63699b39946218a7a)
2024-09-19 02:02:02 +02:00
Alexey Ushakov
cc64cd94be JRE-193 UI freeze and 12/second thread dumps
Moved CStrikeDisposer dispose code to AppKit

(cherry picked from commit 28774d6878)
2024-09-19 02:02:02 +02:00
Alexander Lobas
13107675f7 JBR-3660 PhpStorm 2021.2 crashes on selecting iCloud Drive directory in Open dialog
(cherry picked from commit f5434bcaaf)
2024-09-19 02:02:02 +02:00
Alexander Lobas
6de50da41b JBR-3629 SIGILL at [libsystem_kernel] __kill NPE at com.intellij.openapi.options.SchemeImportUtil$1.isFileSelectable / -[CFileDialog askFilenameFilter:]
(cherry picked from commit 86c13ecaed)
2024-09-19 02:02:02 +02:00
Alexander Lobas
c226f56037 JBR-3443 Native file dialog on OSX enable filename filter by VM option
(cherry-picked from commit f10e324538)
2024-09-19 02:02:02 +02:00
Alexander Lobas
7910a73b9c JBR-3442 Native file dialog on OSX (for open file) doesn't allow pasting path
(cherry-picked from commit 7d8cc524ca)
2024-09-19 02:02:02 +02:00
Maxim Kartashev
deeea787dc Revert "JBR-2755 IDE UI became slow via remote X Server connection from Windows"
This reverts commit cd9138844da770ae60806fd7dbc1e85c773882a8.
2024-09-19 02:02:02 +02:00
Konstantin Aleev
6471792a1e fix memory leaks in AccessibleJTree
(cherry picked from commit 561a7b8def)
2024-09-19 02:02:02 +02:00
Maxim Kartashev
54fd4f372e JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled
The _NET_FRAME_EXTENTS property that is used to obtain the initial
insets of a dialog window does not immediately get its value and may be
returned as 0 if queried too soon after the window creation.

In order to avoid (incorrect) guessing of dialog's insets, make 3
attempts at getting the insets with a small but increasing pause
in between them.
2024-09-19 02:02:02 +02:00
Maxim Kartashev
d14dc9cb69 Revert "JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled"
This reverts commit 8e7aed70976ec0f90c736d86b9cd3e9cf09ff6d4.
2024-09-19 02:02:02 +02:00
Nikita Provotorov
10c29d9c1a JBR-3838 AltGr on Polish keyboard triggers Ctrl+Alt shortcut.
Add regression test.

(cherry picked from commit 8df43eef4b)

with fix for JBR-5300 Change source code and test files to use GPL license
2024-09-19 02:02:02 +02:00
Maxim Kartashev
fd2a25ab3a JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled
The _NET_FRAME_EXTENTS property that is used to obtain the initial
insets of a dialog window does not immediately get its value and may be
returned as 0 if queried too soon after the window creation.

In order to avoid (incorrect) guessing of dialog's insets, add an
artificial delay if getInsets() is called too soon.
2024-09-19 02:02:02 +02:00
Alexey Ushakov
514830b3bc JBR-3820 Gamma correction for grayscale text in Metal rendering pipeline
Added regression test to compare OGL and Metal text rendering
2024-09-19 02:02:02 +02:00
Artem Bochkarev
788c5eba3e JBR-1762: request focus of immediate parent when dispose popup
because requesting focus for frame-parent causes to close whole popup chain

(cherry picked from commit 7a2ccfc521)

JBR-1762: fixed review comments

(cherry picked from commit 0efbe5d9b9)
2024-09-19 02:02:01 +02:00
Dmitry Batrak
1cfe2ac330 JBR-2759 Typeahead issue on Linux
(cherry picked from commits 76bdaf1131, b20c56ff3e, c9609330f2, a170b4e4ae)
2024-09-19 02:02:01 +02:00
Artem Bochkarev
f6cde48a32 JBR-1762: request focus of immediate parent when dispose popup
because requesting focus for frame-parent causes to close whole popup chain

(cherry picked from commit 7a2ccfc521)

JBR-1762: fixed review comments

(cherry picked from commit 0efbe5d9b9)
2024-09-19 02:02:01 +02:00
Renaud Paquay
3a0d546acc Add BasicWithKeyFileAttributeView interface
This new interface is similar to `BasicFileAttributeView` except it
gives implementations a hint that the fileKey() should be acquired
even at some performance cost.

`FileTreeWalker` uses this new interface to request a file key
in addition to regular file attributes so that file equality can
be efficiently performed when checking for loops during file
tree traversal.

This makes `FileTreeWalker` about 2x faster when traversing non
trivial file system trees with the FOLLOW_LINKS option.

Change-Id: I8de047c8fc241dbab9ad57c5e361118a3a94893d

(AKA JBR-3680 Cherry-pick Google's NIO patches to get faster file listing)

(cherry picked from commit 6d1c3f06c4)
2024-09-19 02:02:01 +02:00
Ivan Migalev
a3f055960d JBR-3785: don't touch the active keyboard layout on input method activation / deactivation.
origin PR: github.com/JetBrains/JetBrainsRuntime/pull/78.

(cherry picked from commit 2f772fd1a2)
2024-09-19 02:02:01 +02:00
Dmitry Batrak
27dd58a803 JBR-3779 Unexpected Alt+Tab behaviour for Java frames on Cinnamon DE
(cherry picked from commit 0bf13985d5)
2024-09-19 02:02:01 +02:00
Maxim Kartashev
79cc5caf26 JBR-3772 java/beans/PropertyEditor/TestFontClass.java: access denied ("java.util.PropertyPermission" "sun.awt.x11.trace" "read")
Instead of using System.getProperty() directly, wrap the call into
GetPropertyAction and use AccessController to execute it.
2024-09-19 02:02:01 +02:00
Dmitry Batrak
9bf02a2d66 JBR-3504 a11y focus is set on the wrong element when opening popups
(cherry-picked from commit a69e12e0d2)
2024-09-19 02:02:01 +02:00
Maxim Kartashev
9d6d754535 JBR-3665 Typing is slow in remote X session
Only call XGetKeyboardMapping() once for all valid codes and cache the
resulting table. Use the cache on the subsequent calls to
keycodeToKeysym().
2024-09-19 02:02:01 +02:00