summaryrefslogtreecommitdiff
path: root/src/hyprerror/HyprError.cpp
Commit message (Collapse)AuthorAgeFilesLines
* hyprerror: add padding & adjust for scale when reserving area (#13158)EvilLary2026-02-031-1/+2
|
* hyprerror: clear reserved area on destroy (#13046)Luke Barkess2026-01-211-0/+1
|
* hyprerror: fix horizontal overflow and damage box (#12719)Dmytro Budnyk2026-01-021-7/+10
| | | | | | | | | * hyprerror: fix horizontal overflow and damage box * hyprerror: remove redundant m_queued preservation logic The logic to save and restore m_queued into a temporary string 'q' was redundant because m_queued is explicitly cleared at the end of createQueued() (line 164). Restoring it to a non-empty state would cause createQueued() to be called every frame in draw(), which is not the intended behavior for the static error bar. * Fixes style
* desktop: rewrite reserved area handling + improve tests (#12383)Vaxry2025-12-051-1/+9
|
* compositor: Configurable behavior when window to be focused conflicts with ↵Nikolai Nechaev2025-11-251-1/+2
| | | | | | | | | | 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.
* input: Add fully configurable trackpad gestures (#11490)Vaxry2025-08-281-1/+1
| | | Adds configurable trackpad gestures
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-4/+4
|
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-101-1/+1
| | | | | lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
* pass: overload TexPass constructorTom Englund2025-07-071-1/+1
| | | | | overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable.
* renderer: reduce a lot of glcalls and cache various states (#10757)Tom Englund2025-06-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * opengl: cache viewport state according to nvidia docs calling glViewPort unnecessarily on the same already set viewport is wasteful and can cause state changes when not needed. cache it in a struct and only call it when the viewport is actually changing. * opengl: cache glenable/gldisable state avoid making multiple glenable/gldisable calls on already set caps, can cause state changes and incur driver overhead. * opengl: cache glscissor box only call glscissor if the box actually has changed, try to avoid state changes. * opengl: cache gluniform calls cache the gluniform calls, the uniform values are cached in driver per program only the drawcalls setting the uniform yet again with the same value on same location is causing more overhead then caching it ourself and just no oping on it if no changes. * shader: rewrite handling of uniforms and state this is way faster as we don't need to mess with maps (hashing, etc) and instead can just use an array * opengl: stuff and 300 shaders * opengl: typo * opengl: get the uniform locations properly now that the legacy shaders are gone get the uniformlocations for SKIP_CM etc, so they can be properly set and used depending on if cm_enabled is set to false or true, before it was falling back to a legacy shader that didnt even have those uniforms. * opengl: check epsilon on float and remove extra glcall seems an extra unset glcall was added, remove it. and check the float epsilon on the glfloat. * opengl: remove instanced shader draw remove the instanced boolean from the vertex shader, might be neglible differences, needs more benchmark/work to see if its even worth it. * texture: cache texture paramaters parameters where occasionally set twice or more on same texture, short version wrap it and cache it. and move gpu churn to cpu churn. add a bind/unbind to texture aswell. * texture: use fast std::array caching cache the texparameter values in fast array lookups and incase we dont want it cached, apply it anyways. * shader: fix typo and hdr typo actually use Matrix4x2fv in the 4x2fv cache function, and send the proper float array for hdr. * texture: make caching not linear lookup make caching of texture params not linear. * minor style changes * opengl: revert drawarrays revert the mostly code style reduce loc change of drawarrays, and focus on the caching. its a if else case going wrong here breaking blur/contrast amongst others drawing. --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* internal: refactor to use empty() (#10599)Kamikadze2025-05-311-2/+2
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-1/+1
|
* core: drop the legacy renderer (#10408)Tom Englund2025-05-151-3/+0
| | | | | | | | | | | * core: drop the legacy renderer the legacy renderer is broken and barely used, drop it. * Nix: drop support for legacyRenderer --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* render: refactor class member vars (#10292)davc0n2025-05-051-3/+3
| | | | | * render: refactor class member vars * render: fix clang format
* hyprerror: refactor class member vars (#10227)davc0n2025-05-011-52/+52
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-12/+12
|
* compositor: refactor class member vars (#10141)davc0n2025-04-221-3/+3
|
* windowrules: allow incrementing window props (#9566)MightyPlaza2025-04-161-0/+1
|
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-301-2/+0
| | | | | | | * declare dtor once + DMABBUF typo fix * dup include + clang moment * linux-dmabuf: last minute nit change
* renderer/internal: stop using box pointersVaxry2025-01-261-2/+2
| | | | in favor of const refs
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+2
| | | Cleanup some unneeded includes to speed up compilation
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-16/+14
| | | | | | | | | | | | | * 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
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-1/+7
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* core: move colorspace handling to oklab (#8635)Vaxry2024-12-031-3/+3
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-2/+2
| | | | | * move monitors to sp * XD
* hyprerror: fix height calc with bottom bar (#8043)JManch2024-10-091-1/+1
|
* hyprerror: make hyprerror reserve space (#8040)Vaxry2024-10-081-0/+20
|
* hyprerror: minor stylistic changesVaxry2024-08-021-3/+3
|
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-7/+8
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* renderer: render fonts with pango, add global `font_family` config option ↵giskard2024-05-221-6/+19
| | | | (#6138)
* error: Add option to change position of HyprError bar (#3241) (#6111)Tuur Vanhoutte2024-05-171-6/+9
|
* cursor: move to a hyprland implVaxry2024-05-091-1/+1
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* HookSystem: improve callback safetyVaxry2024-04-201-2/+2
|
* hyprerror: align 32-bit types after 4c796683c05a (#5375)Jan Beich2024-04-011-1/+1
| | | | | | | | | | | | | | | | | src/hyprerror/HyprError.cpp:64:33: error: no matching function for call to 'min' const auto VISLINECOUNT = std::min(LINECOUNT, *LINELIMIT); ^~~~~~~~ /usr/include/c++/v1/__algorithm/min.h:40:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long') min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/v1/__algorithm/min.h:51:1: note: candidate template ignored: could not match 'initializer_list<_Tp>' against 'int' min(initializer_list<_Tp> __t, _Compare __comp) ^ /usr/include/c++/v1/__algorithm/min.h:60:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided min(initializer_list<_Tp> __t) ^ /usr/include/c++/v1/__algorithm/min.h:31:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^
* animvar: fixup update callbacks and cleanupVaxry2024-03-291-1/+1
|
* config: Config error limit/hyprctl (#5165)zakk42232024-03-211-3/+16
| | | | | | | | | | | | | | | | | | | * Add error_limit to limit the number of config error messages shown in notification * Add configerrors hyprctl command * Formatting * Formatting for not my code * Use CVarList, add escapeJSONStrings * Add indication there are more undisplayed errors * Restore suppress_errors; move getErrors() to ConfigManager * Formatting, wtf * Format
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * animation: Refactor AnimatedVariable This commit decomposes the AnimatedVariable class into a base class with the common attribute to all variable types and a templated derived type containing strongly typed info on the type being animated. Access to the typed version is perfomed using the visitor pattern. A utility is provided to build a visitor on the fly using lambdas. Adding a new type to be animated should just be a matter of adding the typed in the list defined by the ANIMABLE_TYPES macro The size of the commit is justified by the API change in the AnimatedVariable class. No more vec(), fl() or col() method but a unified value() method. * animation: Remove visitor pattern * animation: Fix coding style * animation: Fix coding style
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-1/+1
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* hooksystem: add callbackinfo struct and cancellable eventsVaxry2023-10-211-2/+2
|
* Declarative plugin management (#2180)outfoxxed2023-05-011-1/+2
| | | | | | | | | | | | * Declarative plugin management Allow declaring `plugin` entries in the hyprland configuration. Plugins will be loaded if an entry is added and unloaded if that entry is removed. * Replace pointers with copying in updateconfigPlugins * Include which plugin was declared twice in error
* Draw HyprError on the last monitorvaxerski2023-02-281-6/+24
|
* use sans for fonts instead of noto sansvaxerski2023-02-211-1/+1
|
* use proper fade anims for hyprerrorvaxerski2023-01-231-0/+3
|
* fix rounding exceeding max in single-line errorsvaxerski2023-01-221-1/+1
|
* fix color typo in hyprerrorvaxerski2023-01-221-1/+1
|
* make hyprerror follow fadein animvaxerski2023-01-201-8/+30
|
* scale hyprerrorvaxerski2023-01-201-6/+5
|
* small hyprerror revampvaxerski2023-01-201-8/+24
|
* fix font color in hyprerrorvaxerski2023-01-201-1/+1
|
* Normalize color storagevaxerski2023-01-051-4/+4
| | | | | | Colors are now normalized to 0 - 1 values instead of 0 - 255 causes calculations to be simpler and generally cleans up the codebase.