Commit Graph

1203 Commits

Author SHA1 Message Date
Rémi Verschelde 7567211e8b GLES3: Split EGL includes in platform_egl.h
EGL brings in platform-specific headers such as the dreaded `windows.h`,
and `platform_gl.h` is used throughout `drivers/gles3` for basic OpenGL
types such as `GLuint`. We don't want `windows.h` pollution there.

Note for Android: EGL seems used explicitly only via `rasterizer_gles3.cpp`
to enable GL debug printing, and some custom stuff in `config.cpp`.
2026-04-07 12:07:22 +02:00
Dery Almas ac913816d4 Wayland: Initialize libdecor earlier
It has its own bookkeeping which would not immediately initialize in
certain setups, leading to crashes.
2026-04-04 23:09:22 +02:00
Thaddeus Crews e37b5c4035 Merge pull request #118076 from allenwp/output-max-linear-value-events
[Apple, Wayland] HDR Output: Emit window events when HDR state changes
2026-04-03 11:52:22 -05:00
ArchercatNEO 1d14370d55 Wayland: Fix building with libdecor=no 2026-04-03 10:08:11 +01:00
Allen Pestaluky f9145cbc72 Add HDR events for Wayland and Apple display servers
Co-authored-by: ArchercatNEO <tururu.pompella@gmail.com>
2026-04-02 12:50:38 -04:00
Thaddeus Crews 0f51ed6099 Merge pull request #113543 from bruvzg/win_icons
[DisplayServer] Add per window icon support.
2026-03-30 13:35:47 -05:00
Thaddeus Crews 521e442754 Merge pull request #115896 from bruvzg/trace_x
[CrashHandler] Always print frame PCs and main module load address for retrace.
2026-03-30 13:35:29 -05:00
Thaddeus Crews 5ee90d8e82 Merge pull request #117873 from deralmas/wl/send-reinforcements
Wayland: Unify clipboard sending code
2026-03-30 13:35:26 -05:00
Thaddeus Crews a644e7ff38 Merge pull request #114861 from dalexeev/improve-editor-only-class-checking
Improve editor-only class checking
2026-03-30 13:35:14 -05:00
Pāvels Nadtočajevs c20e4dd010 [CrashHandler] Always print frame PCs and main module load address for retrace. 2026-03-27 11:34:36 +02:00
Dery Almas b1c216d916 Wayland: Unify clipboard sending code
The primary and selection parts would constantly get out of sync.

Also fixes a wrong return value in `primary_get_mime`.
2026-03-27 04:33:52 +01:00
Rémi Verschelde e030230a99 Merge pull request #117445 from bruvzg/angle_no_dyn
[macOS/Windows] Remove dynamically linked ANGLE support, add flag to enable/disable ANGLE.
2026-03-26 16:01:25 +01:00
Rémi Verschelde c19a2705af Merge pull request #116692 from deralmas/wl/i-love-multithreading
Wayland: Fix race with buffer scaling
2026-03-26 16:01:14 +01:00
Rémi Verschelde 915f8dcba7 Merge pull request #116648 from gongpha/wayland-clipboard-fix
Fix clipboard history not updating on subsequent copies in Wayland
2026-03-26 16:01:08 +01:00
Danil Alexeev 32d1f518fa Improve editor-only class checking 2026-03-25 17:07:39 +03:00
Pāvels Nadtočajevs 5fc9f6b3d9 [macOS/Windows] Remove dynamically linked ANGLE support, add flag to enable/disable ANGLE.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2026-03-23 13:01:25 +02:00
Pāvels Nadtočajevs d47b8d7a64 [DisplayServer] Add per window icon support. 2026-03-23 11:27:09 +02:00
ArchercatNEO 8be7b9f18c Wayland: Fix use-after-free of Ref<ColorManagementProfile>
Fixes #117676
PR #111964 made a Ref<ColorManagementProfile> which we intentionally
leaked across a client-server barrier owned, which caused a use-after-free.
Manually adding reference/unreference calls keeps the ptr valid without memory leaks.
2026-03-21 09:28:43 +00:00
Dery Almas 2d74e56caf Wayland: Fix race with buffer scaling
We now pass the buffer scale along the window size to the display server
and set everything from there.

This should avoid races where the buffer scale changes while we handle
window rect changes.
2026-03-20 14:24:38 +01:00
Thaddeus Crews fb4a304dee Merge pull request #111965 from Ivorforce/memnew-typed
Make `memnew(RefCounted)` return `Ref`, to improve ownership safety
2026-03-19 15:39:15 -05:00
Thaddeus Crews fa4d24cbb5 Merge pull request #116513 from deralmas/wl/dedup-global-remove
Wayland: Deduplicate cleanup logic
2026-03-19 10:19:52 -05:00
Lukas Tenbrink 05c33acbb1 Make memnew(RefCounted) return Ref, to force callers to take ownership of it through a reference. 2026-03-18 20:34:08 +01:00
Thaddeus Crews 179ee951b6 Merge pull request #117530 from ArchercatNEO/wp-color-management-warning
Wayland: Only report HDR request failed warning if HDR was actually requested
2026-03-18 11:43:28 -05:00
Rémi Verschelde 4336184ea4 Style: Tweak ordering of thirdparty includes with angle brackets 2026-03-18 10:41:59 +01:00
Rémi Verschelde 98868393cc Style: Enforce #include validation hook 2026-03-18 10:41:59 +01:00
Rémi Verschelde e33e98a26f Style: Apply clang-format grouping rules 2026-03-17 20:11:01 +01:00
ArchercatNEO 5b66760492 Wayland: only emit HDR request failed warning if HDR was actually requested
Fixes #117527
2026-03-17 18:52:38 +00:00
DSOE1024 980639ff6e Fix preprocessor directive for X11 and GLES3 2026-03-17 17:26:24 +08:00
Dery Almas 29e1bc5a23 Wayland: Deduplicate cleanup logic
We now reuse the `global_remove` event handler. This removes a
considerable amount of duplication, minimizes human error (such as
cleaning up a global in one place but not the other), and helps test the
dynamic global removal logic.
2026-03-16 23:51:08 +01:00
Thaddeus Crews 5d0a321575 Merge pull request #102987 from ArchercatNEO/wayland-hdr
[LinuxBSD] Add support for HDR output (Wayland)
2026-03-16 11:32:54 -05:00
Rémi Verschelde 005e054245 Remove unused includes in editor with clangd-tidy
Also includes the few changes flagged in `main`.
2026-03-15 20:47:05 +01:00
Rémi Verschelde 0d7bd115da Remove unused includes in drivers with clangd-tidy 2026-03-14 22:38:02 +01:00
Rémi Verschelde d9b81615e5 Remove unused includes in platform with clangd-tidy
Handled Linux, Windows, Android, and (partially) Web.
2026-03-14 22:37:05 +01:00
ArchercatNEO eee3384e20 HDR output for linuxbsd (wayland) 2026-03-13 16:48:58 +00:00
Dery Almas eb680bc8c3 Wayland: Improve mapping robustness and synchronization
We assumed that a window will be ready after a single roundtrip but
that's actually not guaranteed by the XDG shell protocol.

This patch waits for an arbitrary timeout (10s) before erroring out and
forcefully closing the window. Since this exercised quite some code
paths, it also reworks some window handling logic and fixes a bunch of
synchronization issues.
2026-03-13 08:25:04 +01:00
Thaddeus Crews 075d6f27f1 Merge pull request #117313 from bruvzg/no_dyn
Remove AccessKit dynamic wrappers, add download script and build warning if libs are missing.
2026-03-11 15:41:31 -05:00
Pāvels Nadtočajevs dd0387fcb0 Remove AccessKit dynamic wrappers, add download script and build warning if libs are missing. 2026-03-11 14:52:38 +02:00
scgm0 cfe79907af Fix unable to compile linux template_release 2026-03-11 18:59:38 +08:00
Rémi Verschelde e015e8bde4 Remove unused includes in core with clangd-tidy 2026-03-11 06:41:36 +01:00
Yyf2333 282e4544b0 Split VariantCaster from binder_common.h 2026-03-10 17:59:33 +08:00
A Thousand Ships 68cec996d3 [Linux] Fix addr2line call 2026-03-04 18:53:01 +01:00
Thaddeus Crews 0f0c3f3a18 Merge pull request #115566 from bruvzg/add2line_
[Linux/BSD] Prefer `gimli-rs/addr2line` or `llvm-addr2line` over binutils.
2026-03-04 11:20:47 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 727b06a79f Move ProcessID typedef out of OS
This allows decoupling a number of files from `os.h`.
2026-03-04 15:00:45 +01:00
Pāvels Nadtočajevs ee1a64a4ad [Linux/BSD] Prefer gimli-rs/addr2line or llvm-addr2line over binutils. 2026-03-04 14:17:48 +02:00
Rémi Verschelde f332faf46b Explicitly include core/os/os.h where used 2026-03-04 09:54:10 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
StarryWorm 357fa00a4a rm class_db.h from resource.h 2026-02-27 19:08:29 -05:00