summaryrefslogtreecommitdiff
path: root/src/render/decorations/CHyprGroupBarDecoration.cpp
Commit message (Collapse)AuthorAgeFilesLines
* layout: rethonk layouts from the ground up (#12890)Vaxry2026-02-211-93/+29
| | | | | Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.
* groupbar: added group:groupbar:text_padding (#12818)wbg2026-01-071-6/+8
| | | Co-authored-by: Roman Weinberger // ACL <roman.weinberger@acl.at>
* compositor: Configurable behavior when window to be focused conflicts with ↵Nikolai Nechaev2025-11-251-9/+10
| | | | | | | | | | 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/+1
| | | | | | | Reworks the window rule syntax completely --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* groupbar: fix rounding logic for edge cases (#12366)Jochim2025-11-171-7/+9
|
* deco/groupbar: add groupbar blur (#12310)Jochim2025-11-161-37/+24
|
* decoration: reduce virtual callsTom Englund2025-09-281-1/+1
| | | | | | | | this shows up as top contender in idle cpu usage, because decos in animations keeps locking weak pointers to shared pointers per window per frame when its not really needed, use weakpointers all the way and it drops to a bottom contender. marginal gains in the big picture. but gains is gains.
* renderer: Add rounding power setting to groupbar and gradient roundness. ↵Martin2025-08-161-0/+4
| | | | (#11420)
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-11/+11
|
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-101-7/+7
| | | | | 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>
* grpupbar: Add config options to color inactive and locked groupbar titles ↵Jacob Ilias Komissar2025-06-161-8/+24
| | | | (#10667)
* internal: refactor to use empty() (#10599)Kamikadze2025-05-311-1/+1
|
* groupbar: force recalc on visibility changesvaxerski2025-05-281-5/+12
| | | | fixes #10566
* 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-68/+68
| | | | | * render: refactor class member vars * render: fix clang format
* managers: refactor class member vars (#10242)davc0n2025-05-021-4/+4
|
* inputs: refactor class member vars (#10230)davc0n2025-05-011-3/+3
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-14/+14
|
* windows: refactor class member vars (#10168)davc0n2025-04-281-41/+41
|
* workspaces: refactor class member vars (#10167)davc0n2025-04-251-1/+1
|
* groupbar: Add options for setting group bar title font weight (and indicator ↵M Matthew Hydock2025-04-241-14/+22
| | | | gap) (#9617)
* compositor: refactor class member vars (#10141)davc0n2025-04-221-5/+5
|
* config: Refactor class member vars (#10124)davc0n2025-04-201-4/+4
| | | | | * Refactor config classes vars * Fix clang format errors
* groupbar: add text offset and upper gap settings (#9733)Arkady Buryakov2025-04-021-5/+8
| | | | | * Groupbar: add keep_upper_gap setting to apply/remove outer gap offset to the upper side of groupbar * Groupbar: add text_offset setting to adjust text vertical position in a group header
* groupbar: round boxesvaxerski2025-03-261-2/+2
|
* Groupbar: apply scaling factor to text (#9731)Arkady Buryakov2025-03-261-1/+1
|
* groupbar: remove 2 pixel gap above groupbar (#9664)phonetic1122025-03-191-1/+1
|
* groupbar: remove recursive window recalc (#9561)nyx2025-03-171-1/+0
|
* groupbar: add an option to adjust gap sizes (#9578)phonetic1122025-03-121-24/+30
|
* groupbar: pass alpha to title tex render passVaxry2025-03-111-0/+1
| | | | ref #9598
* groupbar: fix groupbar missing when indicator_height is <= 0Vaxry2025-02-091-97/+99
| | | | ref #9291 #9372
* window: move size reporting to animation begin callback (#9298)Maximilian Seidler2025-02-061-3/+0
| | | | | | | | | | | | | | | | | * window: fix resizes with an update callback * window: fixup sendWindowSize Remove the size argument from sendWindowSize, since it is now a member of the Window class and we don't want any mismatches between m_vRealSize and what we report. Remove sendWindowSize from mapWindow, since we shouldn't need it. * window: sendWindowSize on animation begin * window: move most calls to sendWindowSize to the animation begin callback * window: remove sendWindowSize in unmanaged if not fullscreen
* groupbar: various visual improvementsVaxry2025-01-311-19/+72
| | | | added rounding, round at edges, and indicator height
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-301-4/+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-1/+1
| | | | in favor of const refs
* core: move sendWindowSize off of xwaylandmgrVaxry2025-01-251-1/+1
| | | | additionally fixes that one weird x11 issue with floating windows being mis-sized on open
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-6/+6
|
* 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-5/+5
| | | | | | | | | | | | | * 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
* groupbar: fix missing ellipsize for textvaxerski2025-01-041-1/+1
| | | | fixes #8938
* groupbar: unify title renderingvaxerski2025-01-021-68/+7
| | | | moves the text renderer to the unified opengl impl
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-22/+29
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* groups: honor group lock window rule (#8782)Aqa-Ib2024-12-211-0/+1
|
* core: Add clang-tidy (#8664)Vaxry2024-12-071-3/+2
| | | | | 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: move colorspace handling to oklab (#8635)Vaxry2024-12-031-14/+14
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* groups: add merge_groups_on_groupbar (#8362)Aqa-Ib2024-11-061-1/+7
|
* internal: more profiling less calls and local copies (#8300)Tom Englund2024-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compositor: reduce amount of window box copies mousemoveunified can call this very frequently, the cbox copying actually shows up as an impact in such cases, move it down in the scope and only do it when necessery. * core: constify and reference frequent calls profiling shows these as frequent called functions try to reduce the amount of copies with references and const the variables. * pointermgr: remove not used local copy, const ref remove unneded local copies and const ref cursorsize. * inputmgr: reduce amount of calls to vectortowindow the amount of calls to g_pCompositor->vectorToWindowUnified fast ramps up in cpu usage with enough windows existing and moving the mouse, move the PWINDOWIDEAL up and reuse it if its already the same. * protocol: compositor remove unused local copy remove unused local copy of accumulateCurrentBufferDamage and const previousBuffer. * renderer: reduce scope of variables and refactor move a few variables down in their scopes to reduce the amount of calls and copies when not needed, also add one more for loop in renderWorkspaceWindows and store the windows in a vector with weakpointers that should be rendered, this adds a loop but reduces the amount of repeated calls to shouldRenderWindow and also makes the rest of the loops go over way smaller vector when many windows exist.
* group: fix moveWindowIntoGroup (#8297)Aqa-Ib2024-10-301-3/+3
|