summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* renderer: fix dgpu directscanout explicit sync (#13229)Tom Englund2026-02-131-1/+12
| | | | | | | | | | | | | * 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-101-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-071-7/+5
|
* monitor: revert "remove disconnected monitor before unsafe state #12544" ↵EvilLary2026-02-031-2/+3
| | | | (#13154)
* 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/cm: Fix image description info events (#12781)UjinT342026-01-131-46/+89
| | | | | | | | | | | | | | | | | | | | | | | * 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-081-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* cm: allow force disabling WCG and HDR per monitor (#12733)UjinT342025-12-281-2/+13
|
* render/cm: various updates, remove old protocols (#12693)UjinT342025-12-271-67/+63
| | | | | | | | | | | | | * 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-2/+2
| | | fixes #12412
* Desktop/history: Move history to desktop (#12676)Vaxry2025-12-201-23/+0
|
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-66/+66
|
* desktop/layer: store aboveFs property and use thatVaxry2025-12-161-0/+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-081-3/+4
|
* desktop: rewrite reserved area handling + improve tests (#12383)Vaxry2025-12-051-8/+9
|
* compositor: Configurable behavior when window to be focused conflicts with ↵Nikolai Nechaev2025-11-251-18/+19
| | | | | | | | | | fullscreen (#12033) Renames `misc:new_window_takes_over_fullscreen` into `misc:on_focus_under_fullscreen` and implements the following behavior: - By default, when a tiling window is being focused on a workspace where a fullscreen/maximized window exists, respect the `misc:on_focus_under_fullscreen` config variable.
* 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
|