summaryrefslogtreecommitdiff
path: root/src/protocols
Commit message (Collapse)AuthorAgeFilesLines
* windowrules: rewrite completely (#12269)Vaxry2025-11-177-8/+20
| | | | | | | Reworks the window rule syntax completely --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* screencopy: fix possible crash in renderMon()Vaxry2025-11-121-1/+2
|
* renderer: fix noscreenshare layerrule popups (#12260)usering-around2025-11-111-17/+23
|
* presentation: only send sync output on presented (#12255)Tom Englund2025-11-111-1/+1
| | | | | | | as protocol states there is two events. 'presented' or 'discarded'. wp_presentation_feedback::sync_output As presentation can be synchronized to only one output at a time, this event tells which output it was. This event is only sent prior to the presented event.
* renderer: Allow DS for surfaces with inert subsurfaces (#12133)Dominick DiMaggio2025-11-112-0/+14
|
* protocols/layershell: do not raise protocol error if layer surface is not ↵Aurelle2025-11-091-1/+1
| | | | anchored (#12241)
* protocols/outputMgmt: fix wlr-randr by defering success event until monitor ↵nikromen2025-11-082-2/+30
| | | | | | | | | | | reloads (#12236) wlr-randr disconnects immediately after receiving success event, but before applying the monitor configuration. This causes the state to be lost when performMonitorReload() is called. By postponing the success event until the call of the hook monitorLayoutChanged we ensure the configuration to remain valid during the reload process.
* chore: fix non-relative imports (#12228)Amadej Kastelic2025-11-062-2/+2
|
* protocols: add Fifo-v1 and commit-timing-v1 (#12052)Tom Englund2025-11-0621-120/+730
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* protocols/dmabuf: handle null pointer in ↵André Silva2025-11-041-1/+5
| | | | CLinuxDMABufV1Protocol::resetFormatTable (#12207)
* sessionlock: fix crash when sendScale is called on a disconnected (#12171)Matteo Golinelli2025-10-311-1/+7
|
* 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
|
* screencopy: wait longer to re-enable DS (#12135)Dominick DiMaggio2025-10-261-0/+4
|
* xdg-shell: implement invalid parent errorsVaxry2025-10-261-1/+30
|
* internal: fix cfVaxry2025-10-212-0/+2
|
* dispatchers: add forceidle (#11922)MithicSpirit2025-10-192-14/+39
| | | | | | | | | The forceidle dispatcher resets all ext-idle-notify timers as if the user had been idle for the specified number of seconds. If a notification has already fired, but would now be set with a nonzero delay, then it is reset. Conversely, if a timer has not yet fired, but would now be set to a nonpositive delay, then it is immediately fired. This process ignores any existing inhibitors, but timers are otherwise reset as normal if any new inhibitors are created or destroyed.
* protocols: fix output power protocol not sending mode confirmation (#12072)Bang Lee2025-10-181-6/+1
| | | | Use setDPMS() instead of directly manipulating m_dpmsStatus to ensure the dpmsChanged event fires and protocol clients receive mode change confirmation via sendMode().
* ext-foreign-toplevel: remove stale entries when remapping (#12037)Virt2025-10-151-0/+9
|
* dmabuffer: ensure we only create one texture per buffer (#11990)Tom Englund2025-10-102-3/+7
| | | | | buffer can be recomitted, when moving texture creation from constructor to committime it means same buffer recommit can cause a new texture unless we store it per buffer and return the pointer for it.
* buffer: move texture creation to commit time (#11964)Tom Englund2025-10-0811-45/+53
| | | | | | | | | | | | | * 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-074-49/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-064-92/+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-064-49/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* cm: handle inert cm outputs (#11916)UjinT342025-10-042-20/+8
|
* cm: fix primaries to proto scale (#11914)UjinT342025-10-031-9/+11
|
* renderer: add render:non_shader_cm and fixes (#11900)UjinT342025-10-021-0/+7
|
* 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
* protocols/cm: remove unneeded preferred ref (#11877)UjinT342025-10-012-21/+7
|
* internal: fix clang-tidy "errors" (#11862)UjinT342025-09-291-1/+1
|
* viewporter: clamp sub-pixel overflow (#11845)omar2025-09-271-2/+25
| | | Clamps the pending wp_viewport source rect back inside the attached buffer when it misses by <= 1 px, so if clients request something that falls within the 256-increment wl_fixed_from_double precision error it’s still treated as valid.
* 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.
* foreign-toplevel: continue past skipped invalid windows (#11804)omar2025-09-231-1/+1
|
* renderer: add "noscreenshare" layer rule (#11664)0xFMD2025-09-221-0/+16
|
* renderer: fix uv calculations once and for all (#11770)Vaxry2025-09-212-0/+7
| | | fixes synchronization of ackd sizes, fixes wrong xdg stuff
* presentation: fix vrr check for reporting no refresh timeVaxry2025-09-161-1/+1
| | | | ref #11608
* input: support xkb v2 format (#11482)usering-around2025-09-113-9/+9
|
* screencopy: add force 8 bit to fix 10b screensharing (#11623)Vaxry2025-09-083-2/+4
| | | ref https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/270
* presentation: handle vrr for v1 clients (#11608)Dominick DiMaggio2025-09-061-1/+3
|
* protocols/kde-deco: fix tug of war in deco modeVaxry2025-09-042-5/+11
| | | | fixes #11591
* plugins: expose csd functionality (#11551)jmanc32025-09-024-11/+73
|
* protocols: implement pointer-warp-v1 (#11469)Ikalco2025-08-294-0/+89
|
* renderer: Fix CM for DS and SDR passthrough (#11503)UjinT342025-08-292-0/+5
|
* input: Add fully configurable trackpad gestures (#11490)Vaxry2025-08-281-1/+1
| | | Adds configurable trackpad gestures
* tablet: remove old commentVaxry2025-08-271-1/+0
|
* protocols/activation: revert send an invalid token when serial isn't valid ↵Vaxry2025-08-241-7/+0
| | | | | | | | (#11505) This reverts commit d9cf1cb78ef3dfd82f03965aab70792bbe25c9e2. See discussion in #11505
* syncobj: use rendernode for timelines (#11087)Tom Englund2025-08-243-16/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * syncobj: use rendernode for timelines use rendernode for timelines instead of the drmfd, some devices dont support to use the drmfd for this. * opengl: use rendernode if available use rendernode if available for CHyprOpenglImpl * MesaDRM: use the m_drmRenderNodeFD if it exist try use the rendernode we got from AQ if it exist. * linuxdmabuf: use rendernode if available use the rendernode if available already from AQ * syncobj: prefer rendernode over displaynode prefer the rendernode over the displaynode, and log a error if attempting to use the protocol without explicit sync support on any of the nodes. * syncobj: check support on both nodes always check support on both nodes always so it can be used later for preferring rendernode if possible in syncobj protocol. * syncobj: remove old var in non linux if else case remove old m_bDrmSyncobjTimelineSupported from non linux if else case that will fail to compile on non linux. the nodes sets support by default to false, and if non linux it wont check for support and set it to true. * build: bump aq requirement bump to 0.9.3 where rendernode support got added. * flake.lock: update * renderer: glfinish on software renderer software renderers apparently bug out on implicit sync, use glfinish as with nvidia case on implicit paths. * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* disable buffer readability checks on intel (#11515)Tom Englund2025-08-244-7/+11
| | | | | | | | | | | | * 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/activation: send an invalid token when serial isn't valid (#11505)Ross2025-08-231-0/+7
|
* hdr: scRGB, HLG and SDR -> HDR fixes (#11499)UjinT342025-08-223-14/+20
|