summaryrefslogtreecommitdiff
path: root/src/protocols/core
Commit message (Collapse)AuthorAgeFilesLines
* config/lua: init lua config manager, use lua if available (#13817)Vaxry2026-04-261-1/+1
| | | Adds a new lua config manager, which will automatically be used if there is a lua config present.
* protocols/compositor: fix presentFeedback being blockedVaxry2026-04-181-3/+0
| | | | ref #14105
* egl: move over to use hyprgraphics (#12988)Tom Englund2026-04-051-1/+4
| | | use the hyprgraphics helpers instead.
* data/dnd: guard against expired dndPointerFocus and ensure consistent usage ↵Visal Vijay2026-04-051-4/+4
| | | | (#13996)
* protocols: avoid repeated per-client work in hot pathsPppp11162026-04-041-6/+8
|
* protocols: prune stale subsurface refs in hot traversalsPppp11162026-04-043-12/+56
|
* seat/compositor: fix minor issues (#13958)Pppp11162026-04-021-1/+6
|
* seat: store surface in pointerFocus before sendEnter (#13941)Visal Vijay2026-04-011-2/+4
| | | ptr could expire
* renderer: refactor resources and flags (#13471)UjinT342026-03-071-2/+0
|
* render/cm: add ICC profile pipeline (#12711)Vaxry2026-03-041-1/+1
| | | Adds an ICC profile pipeline, loading via config and applying via 3D LUTs.
* event: refactor HookSystem into a typed event bus (#13333)Vaxry2026-02-222-21/+17
| | | | | 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-0/+9
| | | Implements the new screencopy protocols
* wayland/output: return all bound wl_output instances in outputResourceFrom ↵Vaxry2026-02-203-14/+24
| | | | | (#13315) ref https://github.com/hyprwm/Hyprland/discussions/13301
* compositor: dont unlock all states on empty commits (#13303)Tom Englund2026-02-181-1/+1
| | | | | | we cant unlock all states on empty commits, at best tryProcess them. for example if a state is locked and waiting for a fence to become readable, and another commit comes in we cant unlock it until the fence has actually signaled.
* protocols: commit and presentation timing fixes (#13174)UjinT342026-02-102-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* proto/shm: update wl_shm to v2 (#13187)EvilLary2026-02-061-0/+1
|
* fifo: miscellaneous fifo fixes (#13136)UjinT342026-02-041-0/+9
| | | | | | | | | | | * LOGM: clang-tidy fix * fix fifo state and scheduling * disable fifo_pending_workaround by default * fix tearing * fix "empty" commit skipping
* renderer: fix frame sync (#13061)UjinT342026-01-221-2/+2
| | | | | | | | | * fix commit timing timer * fix surface state lock/unlock * debug state sync todos * debug solitary vrr
* core/compositor: immediately do readable if adding waiter fails for ↵Vaxry2026-01-051-1/+4
| | | | scheduling state
* render/cm: various updates, remove old protocols (#12693)UjinT342025-12-272-3/+2
| | | | | | | | | | | | | * 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-271-1/+1
| | | fixes #12412
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-186-55/+55
|
* protocols/datadevice: avoid double leaveVaxry2025-12-112-2/+11
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12494
* protocols/compositor: fix null deref on unassigned surface image descVaxry2025-12-081-1/+1
| | | | ref #12603
* desktop: cleanup, unify desktop elements as views (#12563)Vaxry2025-12-084-11/+13
|
* renderer: add quirks:prefer_hdr to fix HDR activation for some clients (#12436)UjinT342025-12-031-0/+4
|
* buffers: revert state merging (#12461)Tom Englund2025-11-251-7/+0
| | | | | | 8e8bfbb0b146fb1f3234b2a3e3e92b63989e1993 added fifo and merged non buffer states before comitting them, something about certain xwl non buffer commits expects a commit to happend and causes regressions as in low fps.
* renderer: Allow DS for surfaces with inert subsurfaces (#12133)Dominick DiMaggio2025-11-112-0/+14
|
* chore: fix non-relative imports (#12228)Amadej Kastelic2025-11-061-1/+1
|
* protocols: add Fifo-v1 and commit-timing-v1 (#12052)Tom Englund2025-11-064-50/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * protocols: add Fifo-v1 introduce fifo-v1 * fifo: only present locked surfaces dont present to unlocked surfaces and commit pending states from the fifo protocol. * fifo: cformat cformat * protocols: add committiming and surface state queue introduce CSurfaceStateQueue and commit-timing-v1 * fifo: schedule a frame if waiting on barrier if we are waiting on a barrier the state doesnt commit until the next refresh cycle meaning the monitor might have no pending damage and we never get onPresented to unlock the barrier, moment 22. so schedule a frame. * fifo: properly check monitor intersection check for m_enteredoutputs or monitor intersection if client hasnt bound one yet, and dont fifo lock it until the surface is mapped. * buffer: try to merge states before committing them try to merge states before committing them meaning way less churn and surface commits if a surface sends multiple small ones while we wait for buffer readyness from either fifo locks or simply fences. * buffer: dont commit states past the buffer certain changes are relative to the buffer attached, cant go beyond it and apply those onto the next buffer. * buffer: set the lockmask directly cant use .lock since the state hasnt been queued yet, set the lockmask directly when exporting buffer fence. * fifo: dont fifo lock on tearing dont fifo lock on tearing. * buffer: queue the state directly queue the state directly and use the .lock function instead of directly modify the lockMask on the state. * buffer: revert creating texture at commit time fifo barriers introduces such long wait that upon commit time a race happends with current xdg configure implentation that the buffer and image is actually destroyed when entering commitState, doing it at buffer creation time with EGL_PRESERVED_KHR means it sticks around until we are done. so revert 82759d4 and 32f3233 for now. * buffer: rename enum and lockreasons eLockReason and LOCK_REASON_NONE. * fifo: workaround direct scanout lock workaround cursor commits causing fifo to get forever locked, this entire thing needs to be worked out.
* cursor: refactor override handling (#12166)Vaxry2025-10-311-4/+5
| | | much cleaner and more reliable. Should fix https://github.com/hyprwm/Hyprland/issues/12088
* protocols/core: round dnd drop surface boxVaxry2025-10-291-1/+1
|
* buffer: move texture creation to commit time (#11964)Tom Englund2025-10-083-4/+9
| | | | | | | | | | | | | * buffer: move texture creation to commit time move creating texture away from buffer attach into commitstate in an attempt to postpone gpu work until its really needed. best case scenario gpu clocks have ramped up before because we are actively doing things causing surface states and a commit to happend meaning less visible lag. * buffer: simplify texture creation make createTexture return a shared ptr directly, remove not needed member variables as m_success and m_texture.
* compositor: make wl_surface::frame follow pending states (#11953)Tom Englund2025-10-072-49/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compositor: make pending states store frame callbacks move frame callbacks to pending states so they are only committed in the order they came depending on the buffer wait for readyness. * buffer: damage is relative to current commit ensure the damage is only used once, or we are constantly redrawing things on state commits that isnt a buffer. thanks PlasmaPower. * compositor: move callbacks back to compositor move SSurfaceStateFrameCB back to compositor in the class CWLCallbackResource as per request, but still keep the state as owning. * compositor: ensure commits come in order if a buffer is waiting any commits after it might be non buffer commits from the "future" and applying directly. and when the old buffer that was waiting becomes ready it applies its states and overwrites the future changes. move things to scheduleState and add a m_pendingWaiting guard. and schedule the next pending state from the old buffer commit when done. and as such it loops itself and keeps thing orderly.
* core/compositor: revert make wl_surface::frame follow pending states (#11896)Vaxry2025-10-062-78/+49
| | | | | | | This reverts commit 17e77e0407bebd5d24521012ee1d04b156d6b9f4. Reverted due to severe performance degradation due to accumulating frame callbacks
* core/compositor: make wl_surface::frame follow pending states (#11896)Tom Englund2025-10-062-49/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compositor: make pending states store frame callbacks move frame callbacks to pending states so they are only committed in the order they came depending on the buffer wait for readyness. * buffer: damage is relative to current commit ensure the damage is only used once, or we are constantly redrawing things on state commits that isnt a buffer. thanks PlasmaPower. * compositor: move callbacks back to compositor move SSurfaceStateFrameCB back to compositor in the class CWLCallbackResource as per request, but still keep the state as owning. * compositor: ensure commits come in order if a buffer is waiting any commits after it might be non buffer commits from the "future" and applying directly. and when the old buffer that was waiting becomes ready it applies its states and overwrites the future changes. move things to scheduleState and add a m_pendingWaiting guard. and schedule the next pending state from the old buffer commit when done. and as such it loops itself and keeps thing orderly.
* protocols/seat: force down rounding of coords at the surface edge (#11890)Vaxry2025-10-012-2/+27
| | | ref https://github.com/hyprwm/Hyprland/discussions/11665
* shm: refactor to UP and correct m_data check (#11820)Tom Englund2025-09-252-16/+22
| | | | | | | | | | use unique pointers and rvalue references where applicable, buffer is still a shared pointer because CHLBufferReference uses it to hold it locked. in CSHMPool destructor add a check for m_data != MAP_FAILED same in resize, because mmap returns (void *) -1 on failure and that is not comparable to nullptr. delete default constructor so we dont end up in weird states with m_data.
* input: support xkb v2 format (#11482)usering-around2025-09-111-3/+3
|
* protocols: implement pointer-warp-v1 (#11469)Ikalco2025-08-292-0/+15
|
* renderer: Fix CM for DS and SDR passthrough (#11503)UjinT342025-08-292-0/+5
|
* disable buffer readability checks on intel (#11515)Tom Englund2025-08-241-2/+2
| | | | | | | | | | | | * dmabuf: disable buffer read check on intel readability checks directly on buffer fds on some intel laptops is broken, see https://gitlab.freedesktop.org/drm/intel/-/issues/9415 * sync: use rvalue ref in addwaiter doonreadable use rvalue reference in addwaiter and doonreadable, because we store the function in the SReadableWaiter a lot of the time, move it into place there when that happends or let it go out of scope after function call.
* protocols/wayland: use UP and rvalue refs for callbacks (#11471)Tom Englund2025-08-182-5/+5
| | | use UP and rvalue refs in CWLCallbackResource and m_callbacks.
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-146-24/+24
|
* virtualkeyboard: Add options to skip releasing pressed keys on close and to ↵JS Deck2025-08-042-10/+14
| | | | skip sharing key states (#11214)
* dnd: drop on tablet pen tip up (#11270)Maxime Nordier2025-07-302-0/+10
|
* renderer: use CRegion foreach over getRects (#10980)Tom Englund2025-07-301-2/+2
| | | | instead of allocating and returning a vector, use forEach to directly call a function on the rects.
* protocols/subcompositor: fix subsurface sorting (#11136)Vaxry2025-07-203-12/+41
|
* compositor: properly set infinite region on null inputVaxry2025-07-171-1/+1
| | | | fixes #11065
* protocols/cm: Fix preferred image description (#11026)UjinT342025-07-152-1/+16
|