summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.hpp
Commit message (Collapse)AuthorAgeFilesLines
* internal: fix include paths (#9500)Tuur Vanhoutte2025-02-271-1/+1
| | | | | * Fix include path in Monitor.hpp * fix more includes
* protocols: Support wp color management proto (#9444)UjinT342025-02-261-32/+34
| | | Adds support for the recently merged w-p CM protocol alongside the (now deprecated) old CM WIP protocols
* monitor: report a scheduled frame when tearing on cursor moveVaxry2025-02-151-0/+1
|
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * hyprctl: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * ikeyboard: make fd use CFileDescriptor make use of the new CFileDescriptor instead of manual FD handling, also in sendKeymap remove dead code, it already early returns if keyboard isnt valid, and dont try to close the FD that ikeyboard owns. * core: make SHMFile functions use CFileDescriptor make SHMFile misc functions use CFileDescriptor and its associated usage in dmabuf and keyboard. * core: make explicit sync use CFileDescriptor begin using CFileDescriptor in explicit sync and its timelines and eglsync usage in opengl, there is still a bit left with manual handling that requires future aquamarine change aswell. * eventmgr: make fd and sockets use CFileDescriptor make use of the hyprutils CFileDescriptor instead of manual FD and socket handling and closing. * eventloopmgr: make timerfd use CFileDescriptor make the timerfd use CFileDescriptor instead of manual fd handling * opengl: make gbm fd use CFileDescriptor make the gbm rendernode fd use CFileDescriptor instead of manual fd handling * core: make selection source/offer use CFileDescriptor make data selection source and offers use CFileDescriptor and its associated use in xwm and protocols * protocols: convert protocols fd to CFileDescriptor make most fd handling use CFileDescriptor in protocols * shm: make SHMPool use CfileDescriptor make SHMPool use CFileDescriptor instead of manual fd handling. * opengl: duplicate fd with CFileDescriptor duplicate fenceFD with CFileDescriptor duplicate instead. * xwayland: make sockets and fds use CFileDescriptor instead of manual opening/closing make sockets and fds use CFileDescriptor * keybindmgr: make sockets and fds use CFileDescriptor make sockets and fds use CFileDescriptor instead of manual handling.
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-301-2/+1
| | | | | | | * declare dtor once + DMABBUF typo fix * dup include + clang moment * linux-dmabuf: last minute nit change
* monitor: round refresh rates in sorting modesVaxry2025-01-291-2/+2
| | | | fixes #9209
* renderer/internal: stop using box pointersVaxry2025-01-261-2/+2
| | | | in favor of const refs
* 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