87974 Commits

Author SHA1 Message Date
Maxim Kartashev
87ab6879c1 JBR-6769 Make it possible to get info whether IDE is running in a virtual env
Added system property intellij.os.virtualization with possible values
"none", "Xen", "KVM", "VMWare", "HyperV"

(cherry picked from commit 92e4311f13)
2025-12-06 01:03:41 +01:00
Maxim Kartashev
1e88283b58 JBR-6979 Modernize more WaitForSingleObject on Windows
Use -XX:+UnlockExperimentalVMOptions -XX:-UseModernSynchAPI
to switch back to the original implementation
2025-12-06 01:03:41 +01:00
Nikita Provotorov
b9c3280e0e JBR-9349 Do_Not_Use_calloc_Use_safe_Calloc_Instead: is not a member of global namespace
Refactoring the code of JBR-4478 so that C++ standard library headers get only included in AccessibleCaret.cpp and not in any headers.

(cherry picked from commit 12bbc14e5e)
2025-12-06 01:03:41 +01:00
Nikita Tsarev
369c7651af JBR-9336: Fix build error with old wayland protocol headers [WLToolkit]
(cherry picked from commit 95f6cb6d66649109b18da8179fd015f0f331bc69)
2025-12-06 01:03:41 +01:00
Nikita Gubarkov
e49a93e269 JBR-9111 Vulkan: Lock RQ while disposing the surface
(cherry picked from commit 75cc5b3c25e15498139ed2dc81bf8c47cc2471b0)
2025-12-06 01:03:41 +01:00
Maxim Kartashev
f2f1487a7c JBR-9332 Wayland: popups are not closed when parent looses focus
(cherry picked from commit f85b08add5c9505629eaad4d88378b193a2a2c5a)
2025-12-06 01:03:40 +01:00
Nikita Tsarev
2543c2d568 JBR-9326 Support TransferHandler.setDragImage [WLToolkit]
(cherry picked from commit 351f13f526a6ac37264a845618ece397a631410a)
2025-12-06 01:03:40 +01:00
Maxim Kartashev
076326effc JBR-9310 Wayland: Gtk-WARNING in swing app
(cherry picked from commit cdf2ad9a2b6a2048e3eeaadb667e75f511cbcd81)
2025-12-06 01:03:40 +01:00
Dmitry Drobotov
a7d8f4f0bd JBR-4478 Implement support for native accessible caret events on Windows
The feature adds caret tracking support for assistive tools that don't work with Java Access Bridge, specifically, for the built-in Windows Magnifier.
It works by implementing Win32 IAccessible interface for the text caret, and sending EVENT_OBJECT_LOCATIONCHANGE events whenever it changes.
It's enabled by default and can be disabled by setting `sun.awt.windows.use.native.caret.accessibility.events` property to false.

(cherry picked from commit 88f1599bad)
(cherry picked from commit 3f6c1d54e10d49dc72f9d02f30e52f4aa32e099d)
2025-12-06 01:03:40 +01:00
bourgesl
8121363e6d JBR-9283 Enhance Window counters to provide statistics
Enhanced Window counters to provide statistics (using the new marlin StatDouble class), enhanced logging code to dump regularly (10s) window stats, added shutdown hook, bumpCounter() renamed to incrementCounter(), added addStat(window, name, value) used by MTLLayer to report blitTexture & nextDrawable timings (ms), use InnocuousThread for shutdown hooks, fixed D3DSurfaceData bumpCounter() usages to incrementCounter()
2025-12-06 01:03:40 +01:00
Maxim Kartashev
c68414ab80 JBR-9302 Wayland: default window decoration to look more like KDE 2025-12-06 01:03:40 +01:00
Maxim Kartashev
9afc177acc JBR-9016 Add API for making screenshots of some regions of the application without interacting with OS 2025-12-06 01:03:40 +01:00
Dmitry Batrak
ec29dcf596 JBR-4665 Focus 'jitter' on window showing in WSLg
(cherry picked from commit 9b32c2a577)
(cherry picked from commit 2952a2eeb4)
2025-12-06 01:03:40 +01:00
Dmitry Batrak
9eb87f8820 JBR-4535 Popup windows disappear on mouse hover when 'Focus strictly under mouse' policy is used in KDE
(cherry picked from commit a70a83e7fe)
2025-12-06 01:03:40 +01:00
Dmitry Batrak
339ba92861 JBR-2759 Typeahead issue on Linux
(cherry picked from commits 76bdaf1131, b20c56ff3e, c9609330f2, a170b4e4ae)

(cherry picked from commit 281e6abf47)
2025-12-06 01:03:40 +01:00
Maxim Kartashev
3f4e5a06ea JBR-9289 Wayland: an option to turn window shadow off
Use -Dsun.awt.wl.Shadow=false to turn all the window shadows off
2025-12-06 01:03:40 +01:00
Maxim Kartashev
9edb42cbfc JBR-9288 Wayland: use builtin window decorations in KDE 2025-12-06 01:03:39 +01:00
Maxim Kartashev
f7f9ee8204 JBR-9228 KDE: jb/java/awt/Toolkit/DetectingOSThemeTest.java fails 2025-12-06 01:03:39 +01:00
Nikita Gubarkov
8510486882 JBR-7334 Skip custom title bar reconfiguration if nothing changed 2025-12-06 01:03:39 +01:00
Vladimir Lagunov
38c94b9dea JBR-9260 Different ExtendedOptions.NOSHARE_DELETE in WindowsChannelFactory
Before this commit there was a race condition: `sun.nio.fs.ExtendedOptions.InternalOption.register(java.nio.file.OpenOption)` could register only one option.

There have been two similar options:
* `sun.nio.fs.ExtendedOptions.NOSHARE_DELETE`
* `java.io.JbExtendedOpenOptions.NOSHARE_DELETE`

This led to the following failure:
```
Caused by: java.lang.UnsupportedOperationException
    at java.base/sun.nio.fs.WindowsChannelFactory$Flags.toFlags(WindowsChannelFactory.java:131)
    at java.base/sun.nio.fs.WindowsChannelFactory.newFileChannel(WindowsChannelFactory.java:151)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:114)
    at java.base/java.io.IoOverNioFileSystem.initializeStreamsUsingNio0(IoOverNioFileSystem.java:294)
    at java.base/java.io.IoOverNioFileSystem.initializeStreamUsingNio(IoOverNioFileSystem.java:279)
    at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:332)
```

This commit fixes the issue, now both options are supported.
2025-12-06 01:03:39 +01:00
Vladimir Lagunov
a8b3201673 JBR-9181 IoOverNio.isAllowedInThisThread also checks IS_ENABLED_IN_GENERAL
`IoOverNio.isAllowedInThisThread` contained a bug: it could return `true` even if the feature is totally disabled.

Luckily, all usages of `IoOverNio.isAllowedInThisThread` don't exploit this bug. However, this problem can suddenly hit us later.
2025-12-06 01:03:39 +01:00
Vladimir Lagunov
c05495ab7b JBR-9179 ZipFile over nio: more usages of custom nio fs 2025-12-06 01:03:39 +01:00
Maxim Kartashev
719471cd76 JBR-9239 Wayland: IDE partially hangs on any modal dialog 2025-12-06 01:03:39 +01:00
Nikita Gubarkov
ab9048014f JBR-9236 Vulkan: Proper builds without Vulkan 2025-12-06 01:03:39 +01:00
Nikita Tsarev
5dd670cdd1 JBR-9243: Report key modifiers in key typed events [WLToolkit] 2025-12-06 01:03:39 +01:00
Vitaly Provodin
6894e55be5 JBR-9238 Introduce distinct test groups for Vulkan runs 2025-12-06 01:03:39 +01:00
Maxim Kartashev
6a49bcd4fe JBR-9081 Wayland: GTK title bar does not respect theme on Fedora 42 2025-12-06 01:03:39 +01:00
Maxim Kartashev
6e497b7954 JBR-9189 Avoid really hiding a window that was never shown 2025-12-06 01:03:38 +01:00
Nikita Tsarev
8d2d43a1bd JBR-9149: Also report lowercased mime types when offering data sources [WLToolkit] 2025-12-06 01:03:38 +01:00
bourgesl
d6ccf960a4 JBR-7582: use completedHandler to freeDrawableCount to fix the broken cpu barrier with window-sharing and 1 external monitor as the Presented Handler is not safe enough (missing calls or delayed) 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
3c1eb11c5e Revert "JBR-8937 Vulkan: crash in disposal code"
This reverts commit 442ac6f6605366c3acb43cc220ca44153ce96a8c.
2025-12-06 01:03:38 +01:00
Alexey Ushakov
250dbf2f85 JBR-8937 Vulkan: crash in disposal code
Added synchronization before disposal
2025-12-06 01:03:38 +01:00
Nikita Gubarkov
d782f65150 JBR-9070 Vulkan: Add sun.java2d.vulkan=True diagnostics 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
f0963aaa6b JBR-9060 Vulkan: Fix MASK_FILL artifacts
Change local maskPos calculation from integer to floating point subtraction.
2025-12-06 01:03:38 +01:00
Nikita Gubarkov
d537db6097 JBR-8810 Vulkan: Exclude native Vulkan files from vk=off builds 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
3d88b6134c JBR-8740 Vulkan: Optimize BLIT 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
ef076df9a9 JBR-8739 Vulkan: Optimize SURFACE_TO_SW_BLIT 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
3a8bf72715 JBR-8738 Vulkan: Optimize ISO_BLIT 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
4bc47bf80b JBR-8737 Vulkan: Respect nonCoherentAtomSize in allocator 2025-12-06 01:03:38 +01:00
Nikita Gubarkov
47adeebc04 JBR-9176 Vulkan: Refactor dynamic buffer data allocation 2025-12-06 01:03:37 +01:00
Nikita Gubarkov
aad80c7364 JBR-9174 Vulkan: Cleanup image/buffer barriers 2025-12-06 01:03:37 +01:00
Nikita Gubarkov
9f4b4e1839 JBR-9173 Vulkan: Unify cleanup logic 2025-12-06 01:03:37 +01:00
Vladimir Lagunov
6723bf6795 JBR-8965 java.io over nio: improve the performance of IoOverNioFileSystem.getBooleanAttributes
The new code avoids creating unnecessary exceptions.
2025-12-06 01:03:37 +01:00
Maxim Kartashev
8152933b2c JBR-6145 Wayland: synthetic focus for popups 2025-12-06 01:03:37 +01:00
Maxim Kartashev
cb326acfcd JBR-6145 Wayland: refactor surface-to-peer mapping 2025-12-06 01:03:37 +01:00
Artem Bochkarev
4c3623c198 JBR-6478 Add possibility to determine builtin display under OSX 2025-12-06 01:03:37 +01:00
Vitaly Provodin
2e1d64cff2 update exclude list on results of main.3468 test runs 2025-12-06 01:03:37 +01:00
Maxim Kartashev
a73d20d846 JBR-9095 JBR API for HiDPI info 2025-12-06 01:03:37 +01:00
Vitaly Provodin
6cde5d09d0 update exclude list on results of main.3451 test runs 2025-12-06 01:03:37 +01:00
Vitaly Provodin
931af726bb JBR-9065 split part4 onto parts 2025-12-06 01:03:37 +01:00