summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* monintor: remove rathandlerTom Englund2025-07-111-13/+0
| | | | is this even used? lets just remove it.
* internal: Prevent double-free in attemptDirectScanout (#10974)Kamikadze2025-07-091-1/+4
|
* core: use new typed signals from hu (#10853)outfoxxed2025-07-081-23/+18
|
* Renderer: Implement new render scheduling (#10936)Vaxry2025-07-081-65/+9
| | | | | | | | | Implements a new render scheduling method, where we triple buffer when necessary. Enabled by default, improves FPS on underpowered devices. --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* renderer: add mouse zoom animations (#10882)aphelei2025-07-011-4/+5
| | | Adds animations for the mouse zoom effect.
* protocols: add ext-workspace implementation (#10818)outfoxxed2025-06-261-7/+27
|
* renderer/cm: Add automatic hdr (#9785)UjinT342025-06-231-51/+56
|
* config/monitor: Add monitor v2 HDR rules (#10623)UjinT342025-06-151-5/+41
|
* drm-lease: Add Multi-GPU Support (#10099)Joel-Valenciano2025-06-131-2/+7
|
* renderer: fixup some missing fadeout cases with specialVaxry2025-06-111-1/+6
| | | | | | | | | | fixes some fadeout missing cases: - closing last window - closing above fs - closing in general fixes #10283
* monitor: ensure autoDir is applied when changed (#10672)Kamikadze2025-06-071-0/+2
|
* internal: refactor to use empty() (#10599)Kamikadze2025-05-311-1/+1
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-5/+7
|
* monitor: mark 0, 0 presentation timestamps as invalidvaxerski2025-05-271-5/+10
| | | | fixes #10562
* config: add maxwidth monitor resolution mode (#10528)Nikolaos Karaolidis2025-05-261-1/+12
| | | Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
* animations: Add option for animating workspaces as if the first and last ↵CyrenArkade2025-05-061-1/+20
| | | | | | | | | were adjacent (#10277) * add option for animating workspaces as if the first and last were adjacent * change wraparound detection to use IDs instead of dispatcher * move shouldWraparound from MiscFunctions to Monitor
* socket2: add monitorremovedv2 event (#10229)shane blackthorne2025-05-061-0/+1
|
* render: refactor class member vars (#10292)davc0n2025-05-051-4/+4
| | | | | * render: refactor class member vars * render: fix clang format
* renderer: always try to apply a mode if pixel size is invalid (#10291)Vaxry2025-05-051-11/+18
|
* protocols: refactor class member vars (types) (#10261)davc0n2025-05-031-3/+3
|
* internal: Use vecnotinrect instead of !vecinrect (#10262)Honkazel2025-05-031-3/+3
| | | | | | | * monitor: use vecnotinrect * inputmanager: vecnotinrect * clang format
* protocols: refactor class member vars (core) (#10259)davc0n2025-05-031-7/+7
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-455/+456
|
* render: properly release rendered buffers (#9807)Ikalco2025-04-301-5/+0
| | | | | | | | | * cleanup eglSync * properly release buffers in renderer * add renderingDoneCallback and use it in screencopy * use static constructor for CEGLSync
* windows: refactor class member vars (#10168)davc0n2025-04-281-12/+12
|
* workspaces: refactor class member vars (#10167)davc0n2025-04-251-31/+31
|
* layers: refactor class member vars (#10149)davc0n2025-04-241-2/+2
| | | | | * layers: refactor class member vars * popups: rename m_WLSurface to m_wlSurface
* compositor: refactor class member vars (#10141)davc0n2025-04-221-46/+44
|
* debug: refactor class member vars (#10130)davc0n2025-04-211-1/+1
|
* config: Refactor class member vars (#10124)davc0n2025-04-201-2/+2
| | | | | * Refactor config classes vars * Fix clang format errors
* render, helpers: Call OpenGL destroyMonitorResources on disconnect (#10111)Lee Bousfield2025-04-181-1/+5
| | | | | * render, helpers: Call OpenGL destroyMonitorResources on disconnect * helpers: Add opengl null check
* time: move to stl's clocks and move timerVaxry2025-04-161-8/+13
|
* core: wait for dmabuf readiness (#9806)Ikalco2025-04-161-23/+5
| | | | | | | | | * add doOnReadable to event loop manager * move syncTimeline addWaiter to doOnReadable * wait on dmabuf buffers to be readable * don't over synchronize in scanout, also give present feedback on same buffer commit
* windowrules: allow incrementing window props (#9566)MightyPlaza2025-04-161-0/+1
|
* monitors: fix disconnected monitors are reconnected to an empty workspace ↵Nathan Ollerenshaw2025-04-141-0/+19
| | | | | | | (#9874) --------- Co-authored-by: nyx <nnyyxxxx@protonmail.com>
* core: refactor and improve surface commit (#9805)Ikalco2025-04-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * make CHLBufferReference not a SP anymore * copy over release and acquire points in CHLBufferReference * use CHLBufferReference in screencopy and toplevel export TODO: use CHLBufferReference in direct scanout properly the only problem is the scanout buffer release timing, specifically the onBackendRelease mechanism * cleanup SSurfaceState and surface pending commit tracking * move surface code from DRMSyncobj, and move acquire to SSurfaceState * use queue for comitted pending surface states like proto says "The content update is placed in a queue until it becomes active." - wl_surface::commit * drop, not release, prev buffer if 2nd buffer wl_surface.attach is sent "A wl_buffer that has been attached and then replaced by another attach instead of committed will not receive a release event, and is not used by the compositor." - wl_surface::attach
* config: Fix matching monitor by description to allow space prefix (#9788)Emad Elsaid2025-03-301-1/+1
|
* core/compositor: Correctly track SHM buffer damage (#9678)Lee Bousfield2025-03-221-1/+1
|
* screencopy, render: Use explicit sync for screencopy (#9697)Lee Bousfield2025-03-221-4/+1
| | | | | | | * screencopy, render: Use explicit sync for screencopy * screencopy: Check if explicit sync is enabled * screencopy: Don't require explicit KMS enabled
* types: Upgrade buffer ref from WP to SP (#9677)Lee Bousfield2025-03-201-2/+2
|
* renderer: only commit hw cursor stuff if needed (#9654)Ikalco2025-03-171-5/+24
|
* monitor: Optimize direct scanout damage (#9653)Lee Bousfield2025-03-171-1/+1
|
* internal: Fix compiler warnings (#9646)Lee Bousfield2025-03-171-1/+1
|
* renderer: allow commits when buffer is unchanged but cursor changed (#9648)Ikalco2025-03-171-5/+5
|
* syncobj: use eventfd instead of stalling fd checks (#9437)Tom Englund2025-03-141-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * syncobj: cleanup and use uniqueptrs cleanup a bit missing removals if resource not good, erasing from containers etc. make use of unique ptrs instead. and add default destructors. * syncobj: rework syncobj entirerly remove early buffer release that was breaking explicit sync, the buffer needs to exist until the surface commit event has been emitted and draw calls added egl sync points, move to eventfd signaling instead of stalling sync point checks, and recommit pending commits if waiting on a signal. add a CDRMSyncPointState helper class. move a few weak pointers to shared pointers so they dont destruct before we need to use them. * syncobj: queue pending states for eventfd eventfd requires us to queue pending stats until ready and then apply to current, and also when no ready state exist commit the client commit on the current existing buffer, if there is one. * syncobj: clear current buffer damage clear current buffer damage on current buffer commits. * syncobj: cleanup code and fix hyprlock remove unused code, and ensure we dont commit a empty texture causing locksession protocol and gtk4-layer-shell misbehaving. * syncobj: ensure buffers are cleaned up ensure the containers having the various buffers actually gets cleaned up from their containers, incase the CSignal isnt signaled because of expired smart pointers or just wrong order destruction because mishaps. also move the acquire/point setting to buffer attaching. instead of on precommit. * syncobj: remove unused code, optimize remove unused code and merge sync fds if fence is valid, remove manual directscanout buffer dropping that signals release point on pageflip, it can cause us to signal the release point while still keeping the current buffer and rendering it yet again causing wrong things. * syncobj: delay buffer release on non syncobj delay buffer releases on non syncobj surfaces until next commit, and check on async buffers if syncobj and drop and signal the release point on backend buffer release. * syncobj: ensure we follow protocol ensure we follow protocol by replacing acquire/release points if they arrive late and replace already existing ones. also remove unneded brackets, and dont try to manual lock/release buffers when it comes to explicit protocol. it doesnt care about buffer releases only about acquire and release points and signaling them. * syncobj: lets not complicate things set points in precommit, before checking protocol errors and we catch any pending acquire/release points arriving late. * syncobj: move SSurfaceState to types remove destructor resource destroying, let resources destroys them on their events, and move SSurfaceStates to types/SurfaceState.hpp * syncobj: actually store the merged fd have to actually store the mergedfd to use it. * syncobj: cleanup a bit around fences ensure the current asynchronous buffer is actually released on pageflip not the previous. cleanup a bit FD handling in commitPendingAndDoExplicitSync, and reuse the in fence when syncing surfaces. * syncobjs: ensure fence FD doesnt leak calling resetexplicitfence without properly ensuring the FD is closed before will leak it, store it per monitor and let it close itself with the CFileDescriptor class. * syncobj: ensure buffers are actually released buffers were never being sent released properly. * types: Defer buffer sync releaser until unlock * syncobj: store directscanout fence in monitor ensure the infence fd survives the scope of attemptdirectscanout so it doesnt close before it should have. * syncobj: check if if acquire is expired we might hit a race to finish on exit where the timeline just has destructed but the buffer waiter is still pending. and such we removeAllWaiters null dereferences. * syncobj: code style changes remove quack comment, change to m_foo and use a std::vector and weakpointer in the waiter for removal instead of a std::list. * syncobj: remove unused async buffer drop remove unused async buffer drop, only related to directscanout and is handled elsewhere. --------- Co-authored-by: Lee Bousfield <ljbousfield@gmail.com>
* renderer: add simple color management (#9506)UjinT342025-03-141-1/+63
| | | Adds proper color management and transformations for CM surfaces.
* renderer: skip ds commits if buffer didn't change (#9556)Ikalco2025-03-081-43/+41
| | | | this fixes direct scanout glitches by ensuring that attemptDirectScanout doesn't try to recommit the same buffer to AQ which would cause a pageflip event and the backendRelease to release the same buffer too early
* socket2: add activespecialv2 (#9530)Matt White2025-03-051-0/+3
|
* monitor: avoid crash on expired special workspace monitor ownerVaxry2025-03-011-5/+5
| | | | fixes #9477
* monitor: report a scheduled frame when tearing on cursor moveVaxry2025-02-151-0/+18
|