summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* windowrules: rewrite completely (#12269)Vaxry2025-11-171-1/+5
| | | | | | | Reworks the window rule syntax completely --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* i18n: init localization for ANR, Permissions and Notifications (#12316)Vaxry2025-11-161-4/+7
| | | | | | | | Adds localization support for en, it, pl and jp --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Aaron Blasko <blaskoazzolaaaron@gmail.com>
* layout: include reserved area in float fit (#12289)Vaxry2025-11-131-0/+4
| | | Ref https://github.com/basecamp/omarchy/issues/3327
* protocols: add Fifo-v1 and commit-timing-v1 (#12052)Tom Englund2025-11-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* renderer/cm: allow gamma 2.2 instead of sRGB EOTF (#12094)Dominick DiMaggio2025-10-291-9/+20
|
* monitor/dpms: fix possible invalid stateVaxry2025-10-271-2/+25
| | | | | | If dpms gets immediately re-enabled, a commit could fail, not schedule any frames anymore, and the monitor would be stuck off. Fix this by adding a timer to retry if commit fails. ref #12045
* compositor: check for monitor layout issues post rule applyVaxry2025-10-261-3/+3
| | | | fixes #12108
* hyprctl: include color management presets and sdr information (#12019)Filip Mikina2025-10-241-13/+13
| | | | | | * move string parsing for eCMType to its own namespace, similar to how `src/protocols/types/ContentType.cpp` is done * expose cm type and sdr settings in `hyprctl monitors`, format floats to .2f
* monitor: remove spammy trace logVaxry2025-10-211-3/+1
|
* renderer: add render:non_shader_cm and fixes (#11900)UjinT342025-10-021-4/+12
|
* renderer/cm: add more monitor cm options (#11861)UjinT342025-09-291-0/+15
| | | Adds more cm options for monitors: DCIP3, Apple P3, Adobe
* monitors: auto apply suggested scale and notify the user. (#11753)ItsOhen2025-09-201-5/+7
|
* renderer: asynchronously load background tex (#11749)Vaxry2025-09-181-0/+2
| | | | | | | Bumps required hyprgraphics to 0.1.6 --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* solitary: fix check for config error (#11733)Vaxry2025-09-171-2/+9
| | | Adds a blocker for solitary optimizations if there is a hyprerror present
* renderer: Fix CM for DS and SDR passthrough (#11503)UjinT342025-08-291-9/+65
|
* input: Add fully configurable trackpad gestures (#11490)Vaxry2025-08-281-15/+22
| | | Adds configurable trackpad gestures
* internal: Solitary clients with single subsurface & verbose ↵UjinT342025-08-221-16/+245
| | | | | solitary/tearing/DS checks (#11228) Adds more verbose checks for various conditional rendering mechanisms
* hdr: scRGB, HLG and SDR -> HDR fixes (#11499)UjinT342025-08-221-0/+13
|
* monitor: fix dpms toggling animations when state is unchanged (#11480)Aaron Tulino2025-08-191-0/+4
|
* hdr: fix overrides and missing edid hdr metadata (#11476)UjinT342025-08-191-6/+7
|
* renderer: improve modeset timings (#11461)Vaxry2025-08-171-6/+33
| | | | | some CRTCs will just happily eat frames and we can't do much. Some will eat one. Adds a 5-frame buffer to DPMS and Added animations. Better than nothing.
* renderer: add dpms animations (#11452)Vaxry2025-08-171-0/+48
|
* renderer: improve zoom in anims (#11453)Vaxry2025-08-161-0/+7
| | | Removes `animations:first_launch_animation` as it's useless now
* framescheduler: fix edge case crashesvaxerski2025-08-161-2/+6
| | | | | | rare UAFs because renderMonitor can call onDisconnect (ugh, that should be changed...) fixes #11073
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-9/+10
|
* fix: add climits includes (#11288)Martin2025-07-311-0/+1
|
* monitor: fix crash on mutating workspace vecVaxry2025-07-281-3/+3
| | | | fixes #11236
* ci: correct tar command for xz compression & fix typos (#11213)xqso2025-07-251-4/+4
|
* core: move workspace ptrs to weak (#11194)Vaxry2025-07-241-12/+10
| | | | Fixes some race conditions that come up in tests. We only clean up workspaces when we render a frame. With this, they are always cleared instantly.
* protocols/cm: Fix preferred image description (#11026)UjinT342025-07-151-4/+7
|
* 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
|