summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.hpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* renderer: Auto enable wide color gamut in HDR mode (#9090)UjinT342025-01-171-0/+1
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+1
| | | Cleanup some unneeded includes to speed up compilation
* helpers/Monitor.cpp: fix include path (#9039)Toria2025-01-121-1/+1
|
* keybinds: fix previous_per_monitor logic (#9010)Alexander2025-01-111-3/+10
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* internal: few small monitor improvements (#8890)Ikalco2024-12-291-2/+0
| | | | | | | * remove framesToSkip, its not used anymore * only set drm format when needed after leaving direct scanout * always set drm damage
* core: refactor/improve monitor mode selection (#8804)Ikalco2024-12-281-0/+1
|
* core: drop using deques in favor of vectorsVaxry2024-12-161-1/+1
| | | | No point in most of these.
* core: Add clang-tidy (#8664)Vaxry2024-12-071-1/+1
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* internal: cleanup CMonitor usage and fix a few ref hogsVaxry2024-10-261-1/+1
| | | | ref #8221
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-3/+3
| | | | | * move monitors to sp * XD
* monitor: modernize/refactor last legacy-handled eventsVaxry2024-10-191-0/+1
|
* input: Fix VRR for constrained cursors (#6877)UjinT342024-10-121-0/+2
|
* protocols: Add support for hyprland-ctm-control-v1 (#8023)Vaxry2024-10-081-0/+5
| | | | | | | | | | | * initial ctm support * flake.lock: update * Meson: bump required versions and add ctm proto --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* monitor: cleanup and modernize scheduleDoneVaxry2024-10-051-3/+3
|
* Internal: move to Mat3x3 from hyprutils (#7902)Vaxry2024-09-251-1/+1
| | | | | | | | | * Meson: require hyprutils >= 0.2.3 * flake.lock: update hyprutils --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* renderer: minor direct scanout fixes (#7594)Ikalco2024-08-311-1/+2
|
* monitor: avoid dangling references to old monitors being undestroyedvaxerski2024-08-191-1/+1
| | | | ref #7414
* render: fixup format mismatch after leaving DSvaxerski2024-08-171-0/+1
| | | | fixes #7373
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-081-27/+27
| | | | | | | | | | | | | | | | | | | | overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-061-2/+1
| | | | | Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-60/+76
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* damageRing: move to hyprland implVaxry2024-06-191-20/+20
| | | | A small wlroots utility we were still using.
* core: Move to hyprutils for MathVaxry2024-06-191-1/+1
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* vrr: add option to fix mouse breaking vrr (#6483)UjinT342024-06-141-0/+1
| | | | | | | | | | | | | | | * option to fix mouse breaking vrr * skip damage on mouse move * remove this-> & cleanup * add cursor:min_refresh_rate to avoid cursor freezing * run clang-format --------- Co-authored-by: UjinT34 <ujin@uvpn.ru>
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-1/+0
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* monitor: avoid UB on undefined auto dirvaxerski2024-05-241-2/+3
| | | | ref #6217
* presentation-time: move to new implVaxry2024-05-101-0/+1
|
* layer-shell: move to new implVaxry2024-05-091-1/+1
| | | | Also bumps the hw-s dep
* cursor: move to a hyprland implVaxry2024-05-091-0/+4
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* output-management: move to new implVaxry2024-05-031-0/+1
|
* layerSurface: refactor/move to a memory-safe implVaxry2024-04-301-1/+1
| | | | | Makes all the pointers smart to avoid memory issues Refactors layerSurface code to live inside desktop/layersurface
* wlr-output-power: move to new implVaxry2024-04-291-0/+2
|
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-1/+1
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* config: Add More Monitor 'Auto' Positions. (#5670)Gabriel Ford2024-04-231-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * Reverse Window Positioning. * Cleanup old comments and logs. * Finish Splitting Left and Right offset. * Forgot to add Auto Left to ConfigManager * Fix problems with auto_left. * Nearly finish up and down. * Finish draft of all four dirs. Testing now. * Change Y value in moveTo for up and down. * Format, comment, and cleanup. * Address Vaxry's feedback. * Add check to see if auto position is first rule. * Run clang-format.
* gamma-control: move to new implVaxry2024-04-221-1/+8
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-9/+9
| | | | | * refactor workspaces to use ptrs * clang-format
* input: Map touch devices and tablets bound to an output (#3544)Philip Damianik2024-02-271-0/+1
| | | | | | | | | | | * Map bound touch devices and tablets to an output * Add "[[Auto]]" default option for auto detecting outputs for touch inputs * Bind new monitors to configured touch and tablet devices * Use Monitor::matchesStaticSelector in CConfigManager::getMonitorRuleFor * Use Monitor::matchesStaticSelector in CCompositor::getMonitorFromString
* renderer: nuke lastFrameDamage and rework finalDamageVaxry2024-02-231-2/+0
| | | | this fucking SUCKED
* socket2: `monitoraddedv2` IPC event for monitor description and id (#4646)Jacob Birkett2024-02-151-2/+3
| | | | | | | | | * add monitor szShortDescription without DRM node name * change hyprctl to use szShortDescription * add monitoraddedv2 event * add monitor ID as first param of monitoraddedv2
* renderer: accept custom state requests for fake outputsVaxry2024-02-141-27/+28
|
* keybinds: Fix focus not moving along when moving workspace (#4660)Sefa Eyeoglu2024-02-091-1/+1
| | | | | --------- Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
* monitor: wrap usage of wlr_output_stateVaxry2024-01-281-2/+21
| | | | | | for better control and convenience in usage. fixes #4546
* monitor: clear output state after usageVaxry2024-01-271-0/+1
| | | | fixes massive lag
* deps: update wlrootsVaxry2024-01-271-0/+1
| | | | drops requirement for WLR_DRM_NO_ATOMIC provided kernel >= 6.8
* keybinds: Add dispatcher for xmonad/qtile-style workspace switching (#4439)virchau132024-01-151-1/+1
| | | | | | | | | | | | | | | * feat: implement xmonad/qtile-style workspace switching Implements the focusWorkspaceOnCurrentMonitor dispatcher and function, which implements XMonad/Qtile-style workspace switching. When called, focusWorkspaceOnCurrentMonitor will: 1. Send the requested workspace to the current monitor, 2. If the workspace was previously active on a different monitor, replace it with the workspace that was previously active on the current monitor, 3. Focus the workspace on the current monitor. * fix: address PR comments
* renderer: reject non-clean scales, find nearest cleanvaxerski2023-12-221-1/+2
|
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-1/+1
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* monitor: remove comma from monitor description (#3996)François Conzelmann2023-11-301-0/+1
| | | | | | this allows for monitor specific rules to work on monitor with comma on their description fixes #2457
* renderer: Move to a full Hyprland GL rendering pipeline (#3920)Vaxry2023-11-241-26/+28
| | | Also updates wlroots