Carter Li
74e0732390
Common (GNU): more __GNU__ tests
2025-08-24 21:40:22 +08:00
Carter Li
1d32344cf7
Global (GNU): code cleanups
2025-08-24 19:37:06 +08:00
李通洲
5775409cb9
DisplayServer (Android): update WM name
2025-08-22 14:07:58 +08:00
Carter Li
8b1bfcb34b
WM (Linux): uses the same X11 props as neofetch to query WM name
...
Fixes twin detection
2025-08-21 18:35:09 +08:00
Carter Li
b0340d5581
DisplayServer: merge serverVender into wmProtocolName
...
Fix #1888
2025-08-11 09:16:05 +08:00
aequabit
1124342eda
Display (Linux): show brand of Xserver in WM section ( #1888 )
...
* Display: add server vendor string
* Display (X11): fetch server vendor string using XCB/Xlib
* WM: show server vendor string when not empty
* Display (XCB): use proper string helper function
* Display (X11): shorten "The X.Org Foundation" to "Xorg"
2025-08-11 09:03:23 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
86e5a5997b
Display (FreeBSD): silence a compiler warning
2025-06-26 21:44:06 +08:00
李通洲
d182f3f743
OS (macOS): seems macOS 26 Beta 1 still reports itself as macOS 16. Honor it.
2025-06-17 14:01:22 +08:00
李通洲
e68406ee22
DE (macOS): report Liquid Glass on macOS 26+
2025-06-10 10:56:13 +08:00
Carter Li
c7b061eebd
DisplayServer (Linux): fix errors on KDE beta
...
Fix #1765
2025-05-22 09:41:35 +08:00
apocelipes
f270255770
DisplayServer (Linux): fix xcb_connect error handling ( #1735 )
2025-05-06 03:18:53 -05:00
李通洲
846f4c003e
DisplayServer (Linux): silence compiler errors
2025-04-01 19:15:21 +08:00
李通洲
de5ef3842c
Global: fix code smells
2025-03-26 16:44:52 +08:00
apocelipes
d33b5d60b6
Display (Linux): fix the error check for ffReadFileData ( #1622 )
2025-03-18 19:51:51 +08:00
李通洲
6e571a3163
Display (Windows): prefer DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO_2
2025-03-04 21:13:48 +08:00
李通洲
ef60910e51
Display (Haiku): code cleanup; detect manufacture date
2025-02-12 00:44:07 +08:00
李通洲
ff8bfadd25
Display (Haiku): trim monitor name
2025-02-11 16:24:42 +08:00
François Revol
01f400c15f
Haiku: minimal implementation ( #1538 )
2025-02-05 09:08:28 +08:00
Carter Li
66fbda9542
Display (Linux): return reason if errored
2025-01-21 08:44:24 +08:00
Carter Li
b340d4e149
CI: fix build
2025-01-12 12:10:10 +08:00
Carter Li
878e516880
DisplayServer (Linux): upgrade wayland protocol kde-output-device-v2
...
Ref: #1504
2025-01-12 11:23:42 +08:00
Carter Li
4e3673a2bb
DisplayServer (Linux): check HDR support with xx_color_manager_v4_interface (WIP)
2025-01-11 13:10:07 +08:00
Carter Li
6577884417
WMDE: detect Sway by env variables
2025-01-08 08:50:53 +08:00
Carter Li
2176ea2937
Revert "Display (Linux): prefer detecting physical size from EDID"
...
Try fixing #1444
This reverts commit 5f3ce50022 .
2024-12-18 09:28:42 +08:00
Eva
0dc40a2632
WM (Linux): added ratpoison window manager ( #1442 )
2024-12-17 10:49:55 +08:00
李通洲
69f180beea
Display (FreeBSD): don't try to use /sys on FreeBSD
2024-12-14 22:22:35 +08:00
李通洲
0e9cdf75b5
WM (FreeBSD): improve WM detection for Wayland
2024-12-14 22:22:35 +08:00
Carter Li
87446e6eef
WM (OpenBSD): fix process enumeration
2024-12-14 00:18:41 +08:00
Carter Li
bfaa73a2c7
Display (Linux): clean up
2024-12-14 00:05:28 +08:00
Carter Li
373e288d03
WM: add support for fvwm (OpenBSD) and ctwm (NetBSD)
2024-12-14 00:05:02 +08:00
Carter Li
6edf763f2b
Display (Linux): detect bit depth when libdrm is used
2024-12-03 10:55:00 +08:00
Ryan
ee8801b54d
WM (Linux): fix wl-restart parsing ( #1422 )
...
Make the WM name in `wl-restart -n 5 Hyprland` parse as "Hyprland"
instead of "-n".
2024-11-29 08:34:40 +08:00
李通洲
bbe239647b
Logo (Builtin): add Windows Server 2025
...
Fix #1420
2024-11-28 21:55:21 +08:00
李通洲
0cd7aeac19
Display (macOS): don't crash with NULL pointer references
...
Fix #1393
2024-11-25 22:23:24 +08:00
李通洲
9a1d18556d
Display: don't report screen size when display is mirrored
...
Fix #1406
2024-11-21 15:29:14 +08:00
Carter Li
a567268ca1
Display (Linux): fix preferred resolution detection for wayland
2024-11-20 21:38:18 +08:00
李通洲
8b62ad72f7
Display (FreeBSD): fix build
2024-11-20 16:39:01 +08:00
李通洲
7948e627b0
Display (Android): fix build
2024-11-20 16:39:01 +08:00
李通洲
4cca63a299
Display (Windows): detect preferred resolution & refresh rate
2024-11-20 16:39:01 +08:00
李通洲
21a35769a7
Display (macOS): detect maximum resolution & refresh rate
2024-11-20 16:39:01 +08:00
Carter Li
fa9290088d
Display (Linux): detect preferred resolution and refresh rate
2024-11-20 16:38:53 +08:00
Carter Li
3d5133eaba
DisplayServer (Linux): remove support of xcb & xlib
...
They don't support multi-monitors. Prefer libdrm.
2024-11-20 09:37:32 +08:00
李通洲
97e1b987dd
Global: pack all enums and make flag enums unsigned
2024-11-14 11:00:44 +08:00
李通洲
830c71ddc4
DisplayServer (NetBSD): detect WM / DE by process name
2024-11-11 17:37:01 +08:00
Carter Li
837903e845
DisplayServer: fix deprecation warnings
2024-11-09 21:36:48 +08:00
Carter Li
f7288fec01
Global: support DragonFly BSD
2024-11-03 08:35:11 +08:00
Carter Li
5443334156
DisplayServer (Linux): silense compiler warnings
2024-10-29 09:08:28 +08:00
李通洲
fd26373c8f
Global: overall optimization
2024-10-26 11:42:07 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00