summaryrefslogtreecommitdiff
path: root/src/helpers
Commit message (Collapse)AuthorAgeFilesLines
* config/workspacerule: add animation style (#13380)ItsOhen2026-03-131-2/+4
|
* renderer: refactor projection setting (#13485)UjinT342026-03-071-2/+1
|
* renderer: move m_renderData to renderer (#13474)UjinT342026-03-073-9/+10
|
* renderer: refactor resources and flags (#13471)UjinT342026-03-073-23/+64
|
* renderer: refactor Texture, Framebuffer and Renderbuffer (#13437)UjinT342026-03-063-4/+4
| | | Part 1 of the renderer refactors
* renderer: shader variants refactor (#13434)UjinT342026-03-067-36/+43
| | | Part 0 of renderer reworks.
* render/cm: add ICC profile pipeline (#12711)Vaxry2026-03-045-23/+929
| | | Adds an ICC profile pipeline, loading via config and applying via 3D LUTs.
* monitor: damage old special monitor on changeVaxry2026-02-281-0/+1
| | | | ref https://github.com/hyprwm/Hyprland/discussions/13419
* monitor: update pinned window states properly on changeWorkspace (#13441)Vaxry2026-02-281-1/+1
| | | ref https://github.com/hyprwm/Hyprland/discussions/13440
* monitor: keep workspace monitor bindings on full reconnect (#13384)Zynix2026-02-281-11/+25
| | | When all monitors disconnect, non-active workspaces could migrate to the wrong output after reconnect. Preserve workspace ownership and re-apply assigned monitor bindings on connect.
* format: safeguard drmGetFormat functions (#13416)Tom Englund2026-02-281-2/+10
| | | they can return null if not found.
* renderer: better sdr eotf settings (#12812)UjinT342026-02-264-12/+91
|
* event: refactor HookSystem into a typed event bus (#13333)Vaxry2026-02-221-8/+8
| | | | | Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
* protocols: implement image-capture-source-v1 and image-copy-capture-v1 (#11709)Ikalco2026-02-222-4/+8
| | | Implements the new screencopy protocols
* layout: rethonk layouts from the ground up (#12890)Vaxry2026-02-213-12/+46
| | | | | Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.
* multigpu: fix multi gpu checking (#13277)Tom Englund2026-02-213-1/+27
| | | | | | | | | | | | | | | * multigpu: fix multi gpu checking drmFD() from allocators is not always equal, because we reopen them inside AQ for refcounting, meaning they get duplicated and become their own fds, so checking if fd1 == fd2 ends up wrong. introduce sameGpu in MiscFunctions that checks the actual drmDevice meaning we can now even check if a rendernode is the same gpu as a display node if we want. * multigpu: move sameGpu to DRM namespace move sameGpu out of MiscFunctions to DRM namespace.
* cm: block DS for scRGB in HDR mode (#13262)Dominick DiMaggio2026-02-171-1/+1
|
* renderer: fix dgpu directscanout explicit sync (#13229)Tom Englund2026-02-132-2/+13
| | | | | | | | | | | | | * directscanout: fix dgpu directscanout explicit sync without setting an infence, AQ doesnt explicit sync, nor recreate the dgpu fence for the blit work. and as such attemptdirectscanout path artifacts and breaks. create a dummy CEGLSync even tho we dont really have any pending glwork to get a proper fence, and set it. * monitor: dont use new scheduling if direct scanout using the new_render_scheduling makes no sense in the direct scanout path, add a if guard against it.
* protocols: commit and presentation timing fixes (#13174)UjinT342026-02-103-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * move commit timing fields to surface state * fix toTimespec init * update sendQueued api * update onPresented api * set zero copy flag * send clock id * move presented calcs inside condition * use only CLOCK_MONOTONIC for commit/presentation timings * fix setSetTimestamp * do not wait for commit timing while tearing * proto config * fix config defaults
* renderer: allow tearing with DS with invisible cursors (#13155)UjinT342026-02-072-11/+9
|
* monitor: fix DS deactivation (#13188)UjinT342026-02-041-0/+1
|
* monitor: revert "remove disconnected monitor before unsafe state #12544" ↵EvilLary2026-02-031-2/+3
| | | | (#13154)
* time: ensure type correctness and calculate nsec correctly (#13167)Tom Englund2026-02-011-14/+13
| | | | | | | | | | | use auto for nsecdur, assigning system_tp into steady_tp compiles but is not correct. just change it to auto. use {} initialization for timespec structs and returning std::pair. in timediff, fromTimespec and toTimespec the else case was calculating wrong. we need to correctly handle the borrow when the nanoseconds of the first time are smaller than the second, by adding TIMESPEC_NSEC_PER_SEC and decrementing the seconds.
* renderer: fix mouse motion in VRR (#12665)Szwagi2026-01-311-2/+4
|
* renderer: fix frame sync (#13061)UjinT342026-01-221-3/+6
| | | | | | | | | * fix commit timing timer * fix surface state lock/unlock * debug state sync todos * debug solitary vrr
* renderer: fix non shader cm reset (#13027)UjinT342026-01-211-9/+14
|
* protocols/toplevelExport: Support transparency in toplevel export (#12824)ArchSav2026-01-202-0/+15
|
* protocols/cm: Fix image description info events (#12781)UjinT342026-01-132-49/+97
| | | | | | | | | | | | | | | | | | | | | | | * fix image description info events * always send some target primaries * set edid values as target primaries and luminances * init monitor image description * set default luminances for tf * fix BT1886 luminances * fix mastering values and overrides * set maxCLL & maxFALL * typo * add FALL & CLL to preferred HDR image description * fix ref luminances
* fix: handle fullscreen windows on special workspaces (#12851)John Mylchreest2026-01-082-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: handle fullscreen windows on special workspaces inFullscreenMode() only checked m_activeWorkspace, missing fullscreen windows on special workspaces. This caused crashes and incorrect behavior when fullscreen windows were on special workspaces. Changes: - inFullscreenMode() now checks special workspace first since it renders on top of regular workspaces - Added getFullscreenWindow() helper to safely get fullscreen window from either active or special workspace - Updated callers (shouldSkipScheduleFrameOnMouseEvent, Renderer, getFSImageDescription) to use the new helper - Reset m_aboveFullscreen for layer surfaces when opening, closing, or stealing special workspaces between monitors * test: add special workspace fullscreen detection tests Add tests for the new special workspace fullscreen handling introduced in the previous commit. The tests cover: 1. Fullscreen detection on special workspace - verifies that a window made fullscreen on a special workspace is correctly detected 2. Special workspace fullscreen precedence - verifies that when both regular and special workspaces have fullscreen windows, the special workspace window can be focused when the special workspace is opened 3. Toggle special workspace behavior - verifies that toggling the special workspace off properly hides it and returns focus to the regular workspace's fullscreen window These tests exercise the key code paths modified in the fix: - inFullscreenMode() checking special workspace first - getFullscreenWindow() helper returning correct window - Layer surface m_aboveFullscreen reset on special workspace toggle
* renderer/gl: add internal gl formats and reduce internal driver format ↵Tom Englund2026-01-072-139/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conversions (#12879) * format: add internal formats for drm formats cross referenced with weston and added internal formats and types for a lot of missing ones. also added a isFormatYUV helper. * framebuffer: ensure we use right internalformat ensure we use the right internal format to avoid internal driver blitting, also since we only attach the GL_STENCIL_ATTACHMENT we might just aswell only use the GL_STENCIL_INDEX8 to not confuse drivers that we want a depth aswell. * texture: use external on yuv or non linear mods using external makes us use the gpu's internal detiler. and this is makes intel a lot happier then having to format convert it to a linear format internally. * shaders: add external support to CM frag add external support to CM frag, and correct ext.frag typo. * formats: remove duplicates and fix a typo in cm.frag remove duplicate formats and a typo in cm.frag * formats: add swizzle logic to all formats add swizzle logic from weston for all formats and use it in shm texture paths. * format: more format changes use monitor drm format instead of forcing something different. * shader: remove external from cm.frag drivers want this resolved at compiletime cant use both samplerExternalOES and sampler2d and then runtime branch it. * screencopy: swizzle textures in screencopy swizzle textures in screencopy, to get the right colors when copying. * screencopy: restore old behaviour try restore old behaviour before the gles3 format changes. glReadPixels had the wrong format, so i went to far trying to mitigate it. should be like before now.
* anr: open anr dialog on parent's workspace (#12509)EvilLary2026-01-062-1/+14
|
* systemd/sdDaemon: fix incorrect strnlenVaxry2026-01-051-3/+3
|
* systemd/sdDaemon: initialize sockaddr_unVaxry2026-01-051-1/+1
|
* mainLoopExecutor: fix incorrect pipe checkVaxry2026-01-051-4/+1
|
* cm: allow force disabling WCG and HDR per monitor (#12733)UjinT342025-12-282-8/+19
|
* opengl: properly combine transforms in renderTextureVaxry2025-12-272-11/+74
| | | | ref #12666
* render/cm: various updates, remove old protocols (#12693)UjinT342025-12-272-69/+65
| | | | | | | | | | | | | * fix named primaries * default to gamma22 * mark mastering primaries as supported * remove xx-cm and frog support * immutable primaries and image descriptions * clang-format
* rules/windowRuleApplicator: fix min/max size effects (#12491)Vaxry2025-12-273-6/+10
| | | fixes #12412
* Desktop/history: Move history to desktop (#12676)Vaxry2025-12-203-28/+2
|
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-1812-132/+153
|
* desktop/layer: store aboveFs property and use thatVaxry2025-12-161-0/+6
|
* animation: migrate PHLANIMVAR from SP to UP (#12486)Maximilian Seidler2025-12-141-1/+1
|
* renderer: add zoom with detached camera (#12548)jmanc32025-12-143-0/+119
|
* anr: don't create for anr dialogs (#12601)Luke Barkess2025-12-142-1/+6
|
* cm: handle CM for SDR content with cm=hdr, cm_sdr_eotf=2 (#12127)Dominick DiMaggio2025-12-111-5/+8
|
* monitor: remove monitor from list on disconnect before unsafestate (#12544)EvilLary2025-12-091-2/+2
|
* desktop: cleanup, unify desktop elements as views (#12563)Vaxry2025-12-083-7/+10
|
* renderer/cm: make needsHDRupdate per-monitor state (#12564)byddha2025-12-071-0/+1
| | | Co-authored-by: drzbida <55928036+drzbida@users.noreply.github.com>
* desktop: rewrite reserved area handling + improve tests (#12383)Vaxry2025-12-052-31/+33
|
* protocols/cursor-shape: impl version 2 (#12270)Honkazel2025-11-301-1/+3
|