summaryrefslogtreecommitdiff
path: root/src/helpers
Commit message (Collapse)AuthorAgeFilesLines
* monitor: avoid crash on expired special workspace monitor ownerVaxry2025-03-011-5/+5
| | | | fixes #9477
* 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-152-0/+19
|
* internal: remove unused variable (#9402)Honkazel2025-02-141-91/+0
|
* renderer: disable explicit if aquamarine output doesn't support it (#9396) ↵Anthony Ruhier2025-02-131-1/+1
| | | | | | | | | | (#9398) The explicit settings ignore the aquamarine output.supportsExplicit attribute, which creates glitches on drivers not supporting explicit sync (example: freedreno). If the output has been set as not supporting explicit, disable the explicit settings.
* cmonitor: guard old workspaceVaxry2025-02-031-5/+7
|
* protocols: Support content-type-v1 proto (#9226)UjinT342025-02-021-2/+3
|
* monitor: preferred mode now tries first 3 modes if preferred fails before ↵Ikalco2025-01-311-3/+14
| | | | erroring (#9246)
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-306-66/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-302-6/+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-292-5/+6
| | | | fixes #9209
* renderer/internal: stop using box pointersVaxry2025-01-262-6/+6
| | | | in favor of const refs
* core: make persistent workspaces always follow the configVaxry2025-01-261-0/+2
| | | | | | instead of just staying after open, they will now be enforced on their respective monitors fixes #8769
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-235-7/+7
|
* core: use readFileAsString instead of cat for os-releasevaxerski2025-01-191-1/+2
|
* renderer: Auto enable wide color gamut in HDR mode (#9090)UjinT342025-01-171-0/+1
|
* core: fixup includesvaxerski2025-01-172-4/+4
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-176-6/+12
| | | 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-113-4/+35
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* core: Add a periodic donation request (#8981)Vaxry2025-01-104-28/+122
| | | Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-076-466/+23
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* pass: improve pass debuggingvaxerski2025-01-012-0/+20
|
* monitor: avoid crashes on no good modesvaxerski2025-01-011-6/+12
| | | | fixes #8915
* core: fix custom resolutions (#8897)Ikalco2024-12-301-0/+6
|
* 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-282-4/+380
|
* monitor: bring back old description behaviorvaxerski2024-12-231-1/+1
| | | | this makes description match the beginning again. Fixes #8756
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-41/+0
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-1/+1
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* logging: fix Gpu info (#8764)Kamikadze2024-12-191-1/+1
|
* logging: get broader GPUINFO (#8753)Ikalco2024-12-181-1/+1
|
* internal: remove dead code (#8748)Ikalco2024-12-174-29/+0
|
* animationmgr: fixup stack-use-after-returnVaxry2024-12-162-6/+6
|
* core: drop using deques in favor of vectorsVaxry2024-12-164-13/+13
| | | | No point in most of these.
* core: Add clang-tidy (#8664)Vaxry2024-12-0717-124/+115
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* core: Add support for hyprqtutils' update screen (#8651)Vaxry2024-12-062-1/+32
| | | | | | | | | * Nix: add hyprland-qtutils to PATH * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* core: feeling a bit quirky today.Vaxry2024-12-051-13/+36
|
* core: add a few festive splashesVaxry2024-12-051-76/+108
| | | | adds two new 'special' splash types for xmas and new years. Activated based on local time.
* core: move colorspace handling to oklab (#8635)Vaxry2024-12-033-34/+76
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* core: workspace-related function cleanup / refactorVaxry2024-11-222-4/+4
| | | | CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
* monitor: fix default focus when switching to a fs workspaceVaxry2024-11-221-1/+1
|
* bezier: optimize setup of bezier curves (#8528)Tom Englund2024-11-222-18/+29
| | | | | | | | | | avoid reallocations by resizing and copy the pVec into the resized m_dPoints, reduce the amount of calculations in baking to only do it once per iteration instead of twice. precompute in getYforT and getXforT return early in getYForPoint if x is equal or below 0. and use const references where we can. these changes we are now down to an average of "time to bake: 2.50µs." on my machine compared to before average of "time to bake: 11.15µs"
* miscfunctions: move configStringToInt to std::expectedVaxry2024-11-182-35/+47
|
* config: update the configStringToInt implementation (#8476)Maximilian Seidler2024-11-181-21/+57
| | | Copied from hyprlang and removed std::expected.
* miscfunctions: fix cross buildVaxry2024-11-181-1/+1
|
* miscfunctions: add missing includeVaxry2024-11-181-0/+1
|
* shell: propagate new machanism from hyprctl to miscfunctionsVaxry2024-11-171-1/+18
|
* shell: don't use fgrep, prefer grep -FVaxry2024-11-171-1/+1
|